1/*
2 This file is part of the WebKit open source project.
3 This file has been generated by generate-bindings.pl. DO NOT MODIFY!
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
19*/
20
21#include "config.h"
22
23#if ENABLE(WEBGL2)
24
25#include "JSWebGL2RenderingContext.h"
26
27#include "ActiveDOMObject.h"
28#include "DOMIsoSubspaces.h"
29#include "IDLTypes.h"
30#include "InspectorCanvasCallTracer.h"
31#include "JSDOMAttribute.h"
32#include "JSDOMBinding.h"
33#include "JSDOMConstructorNotConstructable.h"
34#include "JSDOMConvertBase.h"
35#include "JSDOMConvertBoolean.h"
36#include "JSDOMConvertBufferSource.h"
37#include "JSDOMConvertInterface.h"
38#include "JSDOMConvertNullable.h"
39#include "JSDOMConvertNumbers.h"
40#include "JSDOMConvertSequences.h"
41#include "JSDOMConvertStrings.h"
42#include "JSDOMConvertUnion.h"
43#include "JSDOMConvertWebGL.h"
44#include "JSDOMExceptionHandling.h"
45#include "JSDOMGlobalObject.h"
46#include "JSDOMGlobalObjectInlines.h"
47#include "JSDOMOperation.h"
48#include "JSDOMWrapperCache.h"
49#include "JSHTMLCanvasElement.h"
50#include "JSHTMLImageElement.h"
51#include "JSHTMLVideoElement.h"
52#include "JSImageBitmap.h"
53#include "JSImageData.h"
54#include "JSWebGLActiveInfo.h"
55#include "JSWebGLBuffer.h"
56#include "JSWebGLProgram.h"
57#include "JSWebGLQuery.h"
58#include "JSWebGLSampler.h"
59#include "JSWebGLSync.h"
60#include "JSWebGLTexture.h"
61#include "JSWebGLTransformFeedback.h"
62#include "JSWebGLUniformLocation.h"
63#include "JSWebGLVertexArrayObject.h"
64#include "ScriptExecutionContext.h"
65#include "WebCoreJSClientData.h"
66#include <JavaScriptCore/FunctionPrototype.h>
67#include <JavaScriptCore/HeapAnalyzer.h>
68#include <JavaScriptCore/JSArray.h>
69#include <JavaScriptCore/JSCInlines.h>
70#include <JavaScriptCore/JSDestructibleObjectHeapCellType.h>
71#include <JavaScriptCore/SlotVisitorMacros.h>
72#include <JavaScriptCore/SubspaceInlines.h>
73#include <wtf/GetPtr.h>
74#include <wtf/PointerPreparations.h>
75#include <wtf/URL.h>
76#include <wtf/Variant.h>
77
78#if ENABLE(WEBGL)
79#include "JSDOMConvertDictionary.h"
80#include "JSWebGLContextAttributes.h"
81#include "JSWebGLFramebuffer.h"
82#include "JSWebGLRenderbuffer.h"
83#include "JSWebGLShader.h"
84#include "JSWebGLShaderPrecisionFormat.h"
85#endif
86
87#if ENABLE(WEBGL) && ENABLE(WEBXR)
88#include "DOMPromiseProxy.h"
89#include "JSDOMConvertPromise.h"
90#include "JSDOMOperationReturningPromise.h"
91#endif
92
93
94namespace WebCore {
95using namespace JSC;
96
97// Functions
98
99static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_bufferData);
100static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_bufferSubData);
101static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_copyBufferSubData);
102static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getBufferSubData);
103static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_blitFramebuffer);
104static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_framebufferTextureLayer);
105static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_invalidateFramebuffer);
106static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_invalidateSubFramebuffer);
107static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_readBuffer);
108static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getInternalformatParameter);
109static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_renderbufferStorageMultisample);
110static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_texStorage2D);
111static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_texStorage3D);
112static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_texImage3D);
113static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_texSubImage3D);
114static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_copyTexSubImage3D);
115static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_compressedTexImage3D);
116static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_compressedTexSubImage3D);
117static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getFragDataLocation);
118static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform1ui);
119static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform2ui);
120static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform3ui);
121static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform4ui);
122static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform1uiv);
123static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform2uiv);
124static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform3uiv);
125static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform4uiv);
126static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniformMatrix2x3fv);
127static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniformMatrix3x2fv);
128static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniformMatrix2x4fv);
129static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniformMatrix4x2fv);
130static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniformMatrix3x4fv);
131static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniformMatrix4x3fv);
132static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_vertexAttribI4i);
133static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_vertexAttribI4iv);
134static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_vertexAttribI4ui);
135static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_vertexAttribI4uiv);
136static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_vertexAttribIPointer);
137static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_vertexAttribDivisor);
138static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_drawArraysInstanced);
139static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_drawElementsInstanced);
140static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_drawRangeElements);
141static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_drawBuffers);
142static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_clearBufferiv);
143static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_clearBufferuiv);
144static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_clearBufferfv);
145static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_clearBufferfi);
146static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_createQuery);
147static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_deleteQuery);
148static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_isQuery);
149static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_beginQuery);
150static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_endQuery);
151static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getQuery);
152static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getQueryParameter);
153static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_createSampler);
154static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_deleteSampler);
155static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_isSampler);
156static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_bindSampler);
157static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_samplerParameteri);
158static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_samplerParameterf);
159static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getSamplerParameter);
160static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_fenceSync);
161static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_isSync);
162static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_deleteSync);
163static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_clientWaitSync);
164static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_waitSync);
165static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getSyncParameter);
166static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_createTransformFeedback);
167static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_deleteTransformFeedback);
168static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_isTransformFeedback);
169static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_bindTransformFeedback);
170static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_beginTransformFeedback);
171static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_endTransformFeedback);
172static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_transformFeedbackVaryings);
173static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getTransformFeedbackVarying);
174static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_pauseTransformFeedback);
175static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_resumeTransformFeedback);
176static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_bindBufferBase);
177static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_bindBufferRange);
178static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getIndexedParameter);
179static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getUniformIndices);
180static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getActiveUniforms);
181static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getUniformBlockIndex);
182static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getActiveUniformBlockParameter);
183static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getActiveUniformBlockName);
184static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniformBlockBinding);
185static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_createVertexArray);
186static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_deleteVertexArray);
187static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_isVertexArray);
188static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_bindVertexArray);
189static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_texImage2D);
190static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_texSubImage2D);
191static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_compressedTexImage2D);
192static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_compressedTexSubImage2D);
193static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform1fv);
194static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform2fv);
195static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform3fv);
196static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform4fv);
197static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform1iv);
198static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform2iv);
199static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform3iv);
200static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform4iv);
201static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniformMatrix2fv);
202static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniformMatrix3fv);
203static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniformMatrix4fv);
204static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_readPixels);
205#if ENABLE(WEBGL)
206static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_activeTexture);
207#endif
208#if ENABLE(WEBGL)
209static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_attachShader);
210#endif
211#if ENABLE(WEBGL)
212static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_bindAttribLocation);
213#endif
214#if ENABLE(WEBGL)
215static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_bindBuffer);
216#endif
217#if ENABLE(WEBGL)
218static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_bindFramebuffer);
219#endif
220#if ENABLE(WEBGL)
221static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_bindRenderbuffer);
222#endif
223#if ENABLE(WEBGL)
224static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_bindTexture);
225#endif
226#if ENABLE(WEBGL)
227static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_blendColor);
228#endif
229#if ENABLE(WEBGL)
230static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_blendEquation);
231#endif
232#if ENABLE(WEBGL)
233static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_blendEquationSeparate);
234#endif
235#if ENABLE(WEBGL)
236static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_blendFunc);
237#endif
238#if ENABLE(WEBGL)
239static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_blendFuncSeparate);
240#endif
241#if ENABLE(WEBGL)
242static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_checkFramebufferStatus);
243#endif
244#if ENABLE(WEBGL)
245static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_clear);
246#endif
247#if ENABLE(WEBGL)
248static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_clearColor);
249#endif
250#if ENABLE(WEBGL)
251static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_clearDepth);
252#endif
253#if ENABLE(WEBGL)
254static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_clearStencil);
255#endif
256#if ENABLE(WEBGL)
257static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_colorMask);
258#endif
259#if ENABLE(WEBGL)
260static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_compileShader);
261#endif
262#if ENABLE(WEBGL)
263static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_copyTexImage2D);
264#endif
265#if ENABLE(WEBGL)
266static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_copyTexSubImage2D);
267#endif
268#if ENABLE(WEBGL)
269static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_createBuffer);
270#endif
271#if ENABLE(WEBGL)
272static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_createFramebuffer);
273#endif
274#if ENABLE(WEBGL)
275static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_createProgram);
276#endif
277#if ENABLE(WEBGL)
278static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_createRenderbuffer);
279#endif
280#if ENABLE(WEBGL)
281static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_createShader);
282#endif
283#if ENABLE(WEBGL)
284static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_createTexture);
285#endif
286#if ENABLE(WEBGL)
287static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_cullFace);
288#endif
289#if ENABLE(WEBGL)
290static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_deleteBuffer);
291#endif
292#if ENABLE(WEBGL)
293static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_deleteFramebuffer);
294#endif
295#if ENABLE(WEBGL)
296static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_deleteProgram);
297#endif
298#if ENABLE(WEBGL)
299static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_deleteRenderbuffer);
300#endif
301#if ENABLE(WEBGL)
302static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_deleteShader);
303#endif
304#if ENABLE(WEBGL)
305static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_deleteTexture);
306#endif
307#if ENABLE(WEBGL)
308static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_depthFunc);
309#endif
310#if ENABLE(WEBGL)
311static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_depthMask);
312#endif
313#if ENABLE(WEBGL)
314static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_depthRange);
315#endif
316#if ENABLE(WEBGL)
317static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_detachShader);
318#endif
319#if ENABLE(WEBGL)
320static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_disable);
321#endif
322#if ENABLE(WEBGL)
323static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_disableVertexAttribArray);
324#endif
325#if ENABLE(WEBGL)
326static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_drawArrays);
327#endif
328#if ENABLE(WEBGL)
329static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_drawElements);
330#endif
331#if ENABLE(WEBGL)
332static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_enable);
333#endif
334#if ENABLE(WEBGL)
335static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_enableVertexAttribArray);
336#endif
337#if ENABLE(WEBGL)
338static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_finish);
339#endif
340#if ENABLE(WEBGL)
341static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_flush);
342#endif
343#if ENABLE(WEBGL)
344static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_framebufferRenderbuffer);
345#endif
346#if ENABLE(WEBGL)
347static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_framebufferTexture2D);
348#endif
349#if ENABLE(WEBGL)
350static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_frontFace);
351#endif
352#if ENABLE(WEBGL)
353static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_generateMipmap);
354#endif
355#if ENABLE(WEBGL)
356static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getActiveAttrib);
357#endif
358#if ENABLE(WEBGL)
359static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getActiveUniform);
360#endif
361#if ENABLE(WEBGL)
362static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getAttachedShaders);
363#endif
364#if ENABLE(WEBGL)
365static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getAttribLocation);
366#endif
367#if ENABLE(WEBGL)
368static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getBufferParameter);
369#endif
370#if ENABLE(WEBGL)
371static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getContextAttributes);
372#endif
373#if ENABLE(WEBGL)
374static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getError);
375#endif
376#if ENABLE(WEBGL)
377static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getSupportedExtensions);
378#endif
379#if ENABLE(WEBGL)
380static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getExtension);
381#endif
382#if ENABLE(WEBGL)
383static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getFramebufferAttachmentParameter);
384#endif
385#if ENABLE(WEBGL)
386static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getParameter);
387#endif
388#if ENABLE(WEBGL)
389static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getProgramParameter);
390#endif
391#if ENABLE(WEBGL)
392static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getProgramInfoLog);
393#endif
394#if ENABLE(WEBGL)
395static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getRenderbufferParameter);
396#endif
397#if ENABLE(WEBGL)
398static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getShaderParameter);
399#endif
400#if ENABLE(WEBGL)
401static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getShaderInfoLog);
402#endif
403#if ENABLE(WEBGL)
404static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getShaderPrecisionFormat);
405#endif
406#if ENABLE(WEBGL)
407static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getShaderSource);
408#endif
409#if ENABLE(WEBGL)
410static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getTexParameter);
411#endif
412#if ENABLE(WEBGL)
413static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getUniform);
414#endif
415#if ENABLE(WEBGL)
416static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getUniformLocation);
417#endif
418#if ENABLE(WEBGL)
419static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getVertexAttrib);
420#endif
421#if ENABLE(WEBGL)
422static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getVertexAttribOffset);
423#endif
424#if ENABLE(WEBGL)
425static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_hint);
426#endif
427#if ENABLE(WEBGL)
428static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_isBuffer);
429#endif
430#if ENABLE(WEBGL)
431static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_isContextLost);
432#endif
433#if ENABLE(WEBGL)
434static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_isEnabled);
435#endif
436#if ENABLE(WEBGL)
437static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_isFramebuffer);
438#endif
439#if ENABLE(WEBGL)
440static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_isProgram);
441#endif
442#if ENABLE(WEBGL)
443static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_isRenderbuffer);
444#endif
445#if ENABLE(WEBGL)
446static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_isShader);
447#endif
448#if ENABLE(WEBGL)
449static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_isTexture);
450#endif
451#if ENABLE(WEBGL)
452static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_lineWidth);
453#endif
454#if ENABLE(WEBGL)
455static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_linkProgram);
456#endif
457#if ENABLE(WEBGL) && ENABLE(WEBXR)
458static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_makeXRCompatible);
459#endif
460#if ENABLE(WEBGL)
461static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_pixelStorei);
462#endif
463#if ENABLE(WEBGL)
464static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_polygonOffset);
465#endif
466#if ENABLE(WEBGL)
467static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_renderbufferStorage);
468#endif
469#if ENABLE(WEBGL)
470static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_sampleCoverage);
471#endif
472#if ENABLE(WEBGL)
473static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_scissor);
474#endif
475#if ENABLE(WEBGL)
476static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_shaderSource);
477#endif
478#if ENABLE(WEBGL)
479static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_stencilFunc);
480#endif
481#if ENABLE(WEBGL)
482static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_stencilFuncSeparate);
483#endif
484#if ENABLE(WEBGL)
485static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_stencilMask);
486#endif
487#if ENABLE(WEBGL)
488static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_stencilMaskSeparate);
489#endif
490#if ENABLE(WEBGL)
491static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_stencilOp);
492#endif
493#if ENABLE(WEBGL)
494static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_stencilOpSeparate);
495#endif
496#if ENABLE(WEBGL)
497static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_texParameterf);
498#endif
499#if ENABLE(WEBGL)
500static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_texParameteri);
501#endif
502#if ENABLE(WEBGL)
503static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform1f);
504#endif
505#if ENABLE(WEBGL)
506static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform2f);
507#endif
508#if ENABLE(WEBGL)
509static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform3f);
510#endif
511#if ENABLE(WEBGL)
512static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform4f);
513#endif
514#if ENABLE(WEBGL)
515static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform1i);
516#endif
517#if ENABLE(WEBGL)
518static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform2i);
519#endif
520#if ENABLE(WEBGL)
521static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform3i);
522#endif
523#if ENABLE(WEBGL)
524static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform4i);
525#endif
526#if ENABLE(WEBGL)
527static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_useProgram);
528#endif
529#if ENABLE(WEBGL)
530static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_validateProgram);
531#endif
532#if ENABLE(WEBGL)
533static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_vertexAttrib1f);
534#endif
535#if ENABLE(WEBGL)
536static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_vertexAttrib2f);
537#endif
538#if ENABLE(WEBGL)
539static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_vertexAttrib3f);
540#endif
541#if ENABLE(WEBGL)
542static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_vertexAttrib4f);
543#endif
544#if ENABLE(WEBGL)
545static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_vertexAttrib1fv);
546#endif
547#if ENABLE(WEBGL)
548static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_vertexAttrib2fv);
549#endif
550#if ENABLE(WEBGL)
551static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_vertexAttrib3fv);
552#endif
553#if ENABLE(WEBGL)
554static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_vertexAttrib4fv);
555#endif
556#if ENABLE(WEBGL)
557static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_vertexAttribPointer);
558#endif
559#if ENABLE(WEBGL)
560static JSC_DECLARE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_viewport);
561#endif
562
563// Attributes
564
565static JSC_DECLARE_CUSTOM_GETTER(jsWebGL2RenderingContextConstructor);
566#if ENABLE(WEBGL)
567static JSC_DECLARE_CUSTOM_GETTER(jsWebGL2RenderingContext_canvas);
568#endif
569#if ENABLE(WEBGL)
570static JSC_DECLARE_CUSTOM_GETTER(jsWebGL2RenderingContext_drawingBufferWidth);
571#endif
572#if ENABLE(WEBGL)
573static JSC_DECLARE_CUSTOM_GETTER(jsWebGL2RenderingContext_drawingBufferHeight);
574#endif
575
576class JSWebGL2RenderingContextPrototype final : public JSC::JSNonFinalObject {
577public:
578 using Base = JSC::JSNonFinalObject;
579 static JSWebGL2RenderingContextPrototype* create(JSC::VM& vm, JSDOMGlobalObject* globalObject, JSC::Structure* structure)
580 {
581 JSWebGL2RenderingContextPrototype* ptr = new (NotNull, JSC::allocateCell<JSWebGL2RenderingContextPrototype>(vm.heap)) JSWebGL2RenderingContextPrototype(vm, globalObject, structure);
582 ptr->finishCreation(vm);
583 return ptr;
584 }
585
586 DECLARE_INFO;
587 template<typename CellType, JSC::SubspaceAccess>
588 static JSC::IsoSubspace* subspaceFor(JSC::VM& vm)
589 {
590 STATIC_ASSERT_ISO_SUBSPACE_SHARABLE(JSWebGL2RenderingContextPrototype, Base);
591 return &vm.plainObjectSpace;
592 }
593 static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
594 {
595 return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
596 }
597
598private:
599 JSWebGL2RenderingContextPrototype(JSC::VM& vm, JSC::JSGlobalObject*, JSC::Structure* structure)
600 : JSC::JSNonFinalObject(vm, structure)
601 {
602 }
603
604 void finishCreation(JSC::VM&);
605public:
606 static constexpr unsigned StructureFlags = Base::StructureFlags | JSC::HasStaticPropertyTable;
607};
608STATIC_ASSERT_ISO_SUBSPACE_SHARABLE(JSWebGL2RenderingContextPrototype, JSWebGL2RenderingContextPrototype::Base);
609
610using JSWebGL2RenderingContextDOMConstructor = JSDOMConstructorNotConstructable<JSWebGL2RenderingContext>;
611
612/* Hash table for Constructor */
613
614static const struct CompactHashIndex JSWebGL2RenderingContextConstructorTableIndex[2125] = {
615 { 192, -1 },
616 { -1, -1 },
617 { 287, 2070 },
618 { -1, -1 },
619 { -1, -1 },
620 { -1, -1 },
621 { -1, -1 },
622 { -1, -1 },
623 { 259, -1 },
624 { -1, -1 },
625 { -1, -1 },
626 { -1, -1 },
627 { -1, -1 },
628 { -1, -1 },
629 { -1, -1 },
630 { 235, -1 },
631 { -1, -1 },
632 { -1, -1 },
633 { 559, -1 },
634 { -1, -1 },
635 { -1, -1 },
636 { -1, -1 },
637 { -1, -1 },
638 { 145, -1 },
639 { -1, -1 },
640 { -1, -1 },
641 { 82, -1 },
642 { -1, -1 },
643 { -1, -1 },
644 { -1, -1 },
645 { -1, -1 },
646 { -1, -1 },
647 { -1, -1 },
648 { -1, -1 },
649 { -1, -1 },
650 { -1, -1 },
651 { -1, -1 },
652 { -1, -1 },
653 { -1, -1 },
654 { -1, -1 },
655 { -1, -1 },
656 { -1, -1 },
657 { 62, -1 },
658 { -1, -1 },
659 { -1, -1 },
660 { -1, -1 },
661 { -1, -1 },
662 { -1, -1 },
663 { -1, -1 },
664 { -1, -1 },
665 { -1, -1 },
666 { -1, -1 },
667 { -1, -1 },
668 { -1, -1 },
669 { -1, -1 },
670 { -1, -1 },
671 { 420, -1 },
672 { -1, -1 },
673 { 158, 2104 },
674 { -1, -1 },
675 { -1, -1 },
676 { -1, -1 },
677 { -1, -1 },
678 { 55, -1 },
679 { -1, -1 },
680 { 24, -1 },
681 { -1, -1 },
682 { -1, -1 },
683 { 527, -1 },
684 { -1, -1 },
685 { -1, -1 },
686 { 449, -1 },
687 { -1, -1 },
688 { -1, -1 },
689 { -1, -1 },
690 { -1, -1 },
691 { -1, -1 },
692 { -1, -1 },
693 { -1, -1 },
694 { 551, -1 },
695 { -1, -1 },
696 { -1, -1 },
697 { 416, -1 },
698 { -1, -1 },
699 { -1, -1 },
700 { -1, -1 },
701 { -1, -1 },
702 { -1, -1 },
703 { -1, -1 },
704 { 150, -1 },
705 { -1, -1 },
706 { 31, 2093 },
707 { -1, -1 },
708 { -1, -1 },
709 { -1, -1 },
710 { 72, -1 },
711 { -1, -1 },
712 { 494, -1 },
713 { -1, -1 },
714 { -1, -1 },
715 { 219, -1 },
716 { -1, -1 },
717 { -1, -1 },
718 { -1, -1 },
719 { -1, -1 },
720 { -1, -1 },
721 { -1, -1 },
722 { -1, -1 },
723 { -1, -1 },
724 { -1, -1 },
725 { -1, -1 },
726 { -1, -1 },
727 { -1, -1 },
728 { -1, -1 },
729 { -1, -1 },
730 { -1, -1 },
731 { -1, -1 },
732 { -1, -1 },
733 { -1, -1 },
734 { -1, -1 },
735 { -1, -1 },
736 { -1, -1 },
737 { -1, -1 },
738 { -1, -1 },
739 { -1, -1 },
740 { -1, -1 },
741 { -1, -1 },
742 { 301, -1 },
743 { -1, -1 },
744 { -1, -1 },
745 { -1, -1 },
746 { -1, -1 },
747 { -1, -1 },
748 { -1, -1 },
749 { -1, -1 },
750 { 376, -1 },
751 { -1, -1 },
752 { -1, -1 },
753 { -1, -1 },
754 { 234, -1 },
755 { -1, -1 },
756 { -1, -1 },
757 { -1, -1 },
758 { -1, -1 },
759 { -1, -1 },
760 { -1, -1 },
761 { 201, -1 },
762 { -1, -1 },
763 { -1, -1 },
764 { -1, -1 },
765 { -1, -1 },
766 { -1, -1 },
767 { 262, -1 },
768 { -1, -1 },
769 { -1, -1 },
770 { 80, -1 },
771 { 459, -1 },
772 { -1, -1 },
773 { -1, -1 },
774 { -1, -1 },
775 { -1, -1 },
776 { -1, -1 },
777 { -1, -1 },
778 { -1, -1 },
779 { -1, -1 },
780 { 406, -1 },
781 { -1, -1 },
782 { -1, -1 },
783 { -1, -1 },
784 { 224, -1 },
785 { -1, -1 },
786 { -1, -1 },
787 { -1, -1 },
788 { 531, -1 },
789 { 156, -1 },
790 { 94, -1 },
791 { 50, 2057 },
792 { 482, -1 },
793 { -1, -1 },
794 { 7, -1 },
795 { -1, -1 },
796 { -1, -1 },
797 { 480, -1 },
798 { -1, -1 },
799 { -1, -1 },
800 { -1, -1 },
801 { 306, -1 },
802 { 213, -1 },
803 { -1, -1 },
804 { -1, -1 },
805 { 105, -1 },
806 { -1, -1 },
807 { -1, -1 },
808 { -1, -1 },
809 { -1, -1 },
810 { 99, -1 },
811 { -1, -1 },
812 { -1, -1 },
813 { -1, -1 },
814 { -1, -1 },
815 { 14, 2085 },
816 { -1, -1 },
817 { -1, -1 },
818 { 452, -1 },
819 { 437, -1 },
820 { -1, -1 },
821 { 237, -1 },
822 { -1, -1 },
823 { 515, -1 },
824 { 188, -1 },
825 { -1, -1 },
826 { 501, -1 },
827 { -1, -1 },
828 { -1, -1 },
829 { -1, -1 },
830 { -1, -1 },
831 { -1, -1 },
832 { -1, -1 },
833 { 315, -1 },
834 { -1, -1 },
835 { -1, -1 },
836 { -1, -1 },
837 { -1, -1 },
838 { -1, -1 },
839 { -1, -1 },
840 { -1, -1 },
841 { -1, -1 },
842 { -1, -1 },
843 { 39, -1 },
844 { -1, -1 },
845 { 119, -1 },
846 { 57, -1 },
847 { -1, -1 },
848 { -1, -1 },
849 { -1, -1 },
850 { 74, -1 },
851 { 248, -1 },
852 { -1, -1 },
853 { -1, -1 },
854 { -1, -1 },
855 { -1, -1 },
856 { -1, -1 },
857 { -1, -1 },
858 { -1, -1 },
859 { -1, -1 },
860 { -1, -1 },
861 { -1, -1 },
862 { -1, -1 },
863 { -1, -1 },
864 { -1, -1 },
865 { -1, -1 },
866 { -1, -1 },
867 { -1, -1 },
868 { -1, -1 },
869 { -1, -1 },
870 { -1, -1 },
871 { 243, -1 },
872 { -1, -1 },
873 { -1, -1 },
874 { -1, -1 },
875 { -1, -1 },
876 { 85, -1 },
877 { -1, -1 },
878 { -1, -1 },
879 { -1, -1 },
880 { 198, -1 },
881 { -1, -1 },
882 { 93, -1 },
883 { -1, -1 },
884 { -1, -1 },
885 { -1, -1 },
886 { -1, -1 },
887 { -1, -1 },
888 { 270, 2109 },
889 { -1, -1 },
890 { -1, -1 },
891 { -1, -1 },
892 { 342, -1 },
893 { -1, -1 },
894 { 177, -1 },
895 { -1, -1 },
896 { -1, -1 },
897 { 333, 2084 },
898 { 488, -1 },
899 { -1, -1 },
900 { -1, -1 },
901 { 409, -1 },
902 { -1, -1 },
903 { -1, -1 },
904 { -1, -1 },
905 { -1, -1 },
906 { -1, -1 },
907 { -1, -1 },
908 { -1, -1 },
909 { -1, -1 },
910 { -1, -1 },
911 { 175, -1 },
912 { -1, -1 },
913 { -1, -1 },
914 { -1, -1 },
915 { -1, -1 },
916 { -1, -1 },
917 { -1, -1 },
918 { -1, -1 },
919 { -1, -1 },
920 { -1, -1 },
921 { -1, -1 },
922 { -1, -1 },
923 { -1, -1 },
924 { -1, -1 },
925 { 345, -1 },
926 { -1, -1 },
927 { -1, -1 },
928 { -1, -1 },
929 { -1, -1 },
930 { 110, 2060 },
931 { -1, -1 },
932 { -1, -1 },
933 { -1, -1 },
934 { -1, -1 },
935 { -1, -1 },
936 { 331, -1 },
937 { -1, -1 },
938 { -1, -1 },
939 { -1, -1 },
940 { -1, -1 },
941 { -1, -1 },
942 { -1, -1 },
943 { 334, 2088 },
944 { -1, -1 },
945 { 60, 2064 },
946 { -1, -1 },
947 { -1, -1 },
948 { 46, 2080 },
949 { -1, -1 },
950 { -1, -1 },
951 { -1, -1 },
952 { -1, -1 },
953 { 115, 2081 },
954 { 184, -1 },
955 { 408, -1 },
956 { 241, 2073 },
957 { -1, -1 },
958 { -1, -1 },
959 { -1, -1 },
960 { 174, -1 },
961 { -1, -1 },
962 { 22, -1 },
963 { 185, -1 },
964 { -1, -1 },
965 { -1, -1 },
966 { -1, -1 },
967 { -1, -1 },
968 { 412, -1 },
969 { -1, -1 },
970 { -1, -1 },
971 { -1, -1 },
972 { -1, -1 },
973 { -1, -1 },
974 { 556, -1 },
975 { -1, -1 },
976 { -1, -1 },
977 { -1, -1 },
978 { -1, -1 },
979 { -1, -1 },
980 { -1, -1 },
981 { -1, -1 },
982 { 142, -1 },
983 { 79, -1 },
984 { -1, -1 },
985 { -1, -1 },
986 { 139, -1 },
987 { -1, -1 },
988 { -1, -1 },
989 { -1, -1 },
990 { -1, -1 },
991 { -1, -1 },
992 { -1, -1 },
993 { -1, -1 },
994 { 530, -1 },
995 { 444, 2102 },
996 { -1, -1 },
997 { -1, -1 },
998 { 128, 2106 },
999 { -1, -1 },
1000 { -1, -1 },
1001 { -1, -1 },
1002 { -1, -1 },
1003 { -1, -1 },
1004 { -1, -1 },
1005 { -1, -1 },
1006 { -1, -1 },
1007 { -1, -1 },
1008 { -1, -1 },
1009 { -1, -1 },
1010 { -1, -1 },
1011 { -1, -1 },
1012 { -1, -1 },
1013 { -1, -1 },
1014 { -1, -1 },
1015 { -1, -1 },
1016 { -1, -1 },
1017 { -1, -1 },
1018 { -1, -1 },
1019 { -1, -1 },
1020 { -1, -1 },
1021 { -1, -1 },
1022 { -1, -1 },
1023 { 366, 2117 },
1024 { -1, -1 },
1025 { -1, -1 },
1026 { -1, -1 },
1027 { -1, -1 },
1028 { -1, -1 },
1029 { 52, 2078 },
1030 { -1, -1 },
1031 { 30, -1 },
1032 { -1, -1 },
1033 { -1, -1 },
1034 { 95, -1 },
1035 { -1, -1 },
1036 { -1, -1 },
1037 { -1, -1 },
1038 { -1, -1 },
1039 { -1, -1 },
1040 { -1, -1 },
1041 { -1, -1 },
1042 { -1, -1 },
1043 { -1, -1 },
1044 { -1, -1 },
1045 { 109, -1 },
1046 { -1, -1 },
1047 { 210, 2110 },
1048 { -1, -1 },
1049 { -1, -1 },
1050 { -1, -1 },
1051 { -1, -1 },
1052 { -1, -1 },
1053 { -1, -1 },
1054 { -1, -1 },
1055 { -1, -1 },
1056 { -1, -1 },
1057 { -1, -1 },
1058 { -1, -1 },
1059 { -1, -1 },
1060 { -1, -1 },
1061 { -1, -1 },
1062 { -1, -1 },
1063 { -1, -1 },
1064 { 183, -1 },
1065 { -1, -1 },
1066 { -1, -1 },
1067 { -1, -1 },
1068 { 268, 2072 },
1069 { -1, -1 },
1070 { -1, -1 },
1071 { -1, -1 },
1072 { -1, -1 },
1073 { 91, -1 },
1074 { -1, -1 },
1075 { 450, -1 },
1076 { -1, -1 },
1077 { -1, -1 },
1078 { 214, -1 },
1079 { -1, -1 },
1080 { -1, -1 },
1081 { -1, -1 },
1082 { -1, -1 },
1083 { 470, -1 },
1084 { -1, -1 },
1085 { -1, -1 },
1086 { -1, -1 },
1087 { -1, -1 },
1088 { 231, 2105 },
1089 { -1, -1 },
1090 { -1, -1 },
1091 { -1, -1 },
1092 { 532, -1 },
1093 { -1, -1 },
1094 { -1, -1 },
1095 { -1, -1 },
1096 { -1, -1 },
1097 { -1, -1 },
1098 { -1, -1 },
1099 { -1, -1 },
1100 { -1, -1 },
1101 { -1, -1 },
1102 { -1, -1 },
1103 { -1, -1 },
1104 { -1, -1 },
1105 { -1, -1 },
1106 { -1, -1 },
1107 { -1, -1 },
1108 { -1, -1 },
1109 { 34, -1 },
1110 { -1, -1 },
1111 { 108, -1 },
1112 { -1, -1 },
1113 { -1, -1 },
1114 { 35, -1 },
1115 { -1, -1 },
1116 { 8, -1 },
1117 { 107, -1 },
1118 { -1, -1 },
1119 { 285, -1 },
1120 { -1, -1 },
1121 { -1, -1 },
1122 { 457, -1 },
1123 { -1, -1 },
1124 { -1, -1 },
1125 { -1, -1 },
1126 { -1, -1 },
1127 { 100, -1 },
1128 { -1, -1 },
1129 { -1, -1 },
1130 { -1, -1 },
1131 { -1, -1 },
1132 { -1, -1 },
1133 { -1, -1 },
1134 { -1, -1 },
1135 { 336, -1 },
1136 { -1, -1 },
1137 { -1, -1 },
1138 { -1, -1 },
1139 { -1, -1 },
1140 { -1, -1 },
1141 { -1, -1 },
1142 { 137, -1 },
1143 { -1, -1 },
1144 { -1, -1 },
1145 { 499, -1 },
1146 { -1, -1 },
1147 { 483, -1 },
1148 { -1, -1 },
1149 { -1, -1 },
1150 { -1, -1 },
1151 { 186, -1 },
1152 { -1, -1 },
1153 { -1, -1 },
1154 { -1, -1 },
1155 { -1, -1 },
1156 { -1, -1 },
1157 { -1, -1 },
1158 { -1, -1 },
1159 { -1, -1 },
1160 { -1, -1 },
1161 { -1, -1 },
1162 { -1, -1 },
1163 { 3, -1 },
1164 { 247, -1 },
1165 { -1, -1 },
1166 { -1, -1 },
1167 { -1, -1 },
1168 { -1, -1 },
1169 { -1, -1 },
1170 { 517, -1 },
1171 { -1, -1 },
1172 { -1, -1 },
1173 { -1, -1 },
1174 { -1, -1 },
1175 { -1, -1 },
1176 { -1, -1 },
1177 { 290, -1 },
1178 { -1, -1 },
1179 { -1, -1 },
1180 { 465, 2115 },
1181 { -1, -1 },
1182 { -1, -1 },
1183 { -1, -1 },
1184 { -1, -1 },
1185 { 359, -1 },
1186 { -1, -1 },
1187 { -1, -1 },
1188 { 5, -1 },
1189 { -1, -1 },
1190 { -1, -1 },
1191 { -1, -1 },
1192 { -1, -1 },
1193 { 223, 2067 },
1194 { -1, -1 },
1195 { 491, -1 },
1196 { 98, 2053 },
1197 { -1, -1 },
1198 { 194, -1 },
1199 { -1, -1 },
1200 { -1, -1 },
1201 { 242, 2092 },
1202 { -1, -1 },
1203 { 522, -1 },
1204 { -1, -1 },
1205 { -1, -1 },
1206 { 427, -1 },
1207 { -1, -1 },
1208 { 339, -1 },
1209 { -1, -1 },
1210 { -1, -1 },
1211 { 260, -1 },
1212 { 298, -1 },
1213 { -1, -1 },
1214 { -1, -1 },
1215 { 320, -1 },
1216 { -1, -1 },
1217 { 147, 2121 },
1218 { -1, -1 },
1219 { -1, -1 },
1220 { 250, -1 },
1221 { -1, -1 },
1222 { -1, -1 },
1223 { -1, -1 },
1224 { -1, -1 },
1225 { -1, -1 },
1226 { -1, -1 },
1227 { -1, -1 },
1228 { 402, -1 },
1229 { -1, -1 },
1230 { -1, -1 },
1231 { -1, -1 },
1232 { 228, -1 },
1233 { -1, -1 },
1234 { -1, -1 },
1235 { -1, -1 },
1236 { -1, -1 },
1237 { 460, -1 },
1238 { -1, -1 },
1239 { 144, -1 },
1240 { -1, -1 },
1241 { -1, -1 },
1242 { -1, -1 },
1243 { -1, -1 },
1244 { -1, -1 },
1245 { -1, -1 },
1246 { -1, -1 },
1247 { -1, -1 },
1248 { -1, -1 },
1249 { -1, -1 },
1250 { 521, -1 },
1251 { -1, -1 },
1252 { -1, -1 },
1253 { -1, -1 },
1254 { -1, -1 },
1255 { -1, -1 },
1256 { -1, -1 },
1257 { -1, -1 },
1258 { -1, -1 },
1259 { -1, -1 },
1260 { 355, -1 },
1261 { -1, -1 },
1262 { 281, -1 },
1263 { -1, -1 },
1264 { -1, -1 },
1265 { -1, -1 },
1266 { -1, -1 },
1267 { -1, -1 },
1268 { 422, -1 },
1269 { 313, -1 },
1270 { -1, -1 },
1271 { 6, -1 },
1272 { -1, -1 },
1273 { -1, -1 },
1274 { 481, -1 },
1275 { -1, -1 },
1276 { -1, -1 },
1277 { -1, -1 },
1278 { -1, -1 },
1279 { -1, -1 },
1280 { -1, -1 },
1281 { -1, -1 },
1282 { 97, -1 },
1283 { -1, -1 },
1284 { -1, -1 },
1285 { 106, -1 },
1286 { -1, -1 },
1287 { -1, -1 },
1288 { -1, -1 },
1289 { -1, -1 },
1290 { 395, -1 },
1291 { -1, -1 },
1292 { 246, -1 },
1293 { -1, -1 },
1294 { -1, -1 },
1295 { -1, -1 },
1296 { -1, -1 },
1297 { -1, -1 },
1298 { -1, -1 },
1299 { 426, -1 },
1300 { -1, -1 },
1301 { 514, -1 },
1302 { 505, -1 },
1303 { -1, -1 },
1304 { -1, -1 },
1305 { 471, -1 },
1306 { -1, -1 },
1307 { -1, -1 },
1308 { -1, -1 },
1309 { -1, -1 },
1310 { -1, -1 },
1311 { 238, 2077 },
1312 { 557, -1 },
1313 { -1, -1 },
1314 { 442, -1 },
1315 { 173, -1 },
1316 { 23, -1 },
1317 { 273, -1 },
1318 { -1, -1 },
1319 { -1, -1 },
1320 { -1, -1 },
1321 { -1, -1 },
1322 { -1, -1 },
1323 { -1, -1 },
1324 { 321, -1 },
1325 { -1, -1 },
1326 { -1, -1 },
1327 { -1, -1 },
1328 { -1, -1 },
1329 { 513, -1 },
1330 { 538, -1 },
1331 { 528, -1 },
1332 { -1, -1 },
1333 { -1, -1 },
1334 { -1, -1 },
1335 { -1, -1 },
1336 { 525, -1 },
1337 { 411, -1 },
1338 { -1, -1 },
1339 { 516, -1 },
1340 { -1, -1 },
1341 { -1, -1 },
1342 { -1, -1 },
1343 { -1, -1 },
1344 { 303, -1 },
1345 { -1, -1 },
1346 { -1, -1 },
1347 { -1, -1 },
1348 { 363, -1 },
1349 { -1, -1 },
1350 { 122, -1 },
1351 { -1, -1 },
1352 { -1, -1 },
1353 { -1, -1 },
1354 { 490, -1 },
1355 { -1, -1 },
1356 { -1, -1 },
1357 { -1, -1 },
1358 { -1, -1 },
1359 { -1, -1 },
1360 { -1, -1 },
1361 { -1, -1 },
1362 { -1, -1 },
1363 { -1, -1 },
1364 { 103, 2083 },
1365 { -1, -1 },
1366 { -1, -1 },
1367 { -1, -1 },
1368 { 126, -1 },
1369 { -1, -1 },
1370 { -1, -1 },
1371 { -1, -1 },
1372 { -1, -1 },
1373 { 42, -1 },
1374 { -1, -1 },
1375 { -1, -1 },
1376 { -1, -1 },
1377 { -1, -1 },
1378 { 274, -1 },
1379 { -1, -1 },
1380 { -1, -1 },
1381 { 512, -1 },
1382 { -1, -1 },
1383 { -1, -1 },
1384 { -1, -1 },
1385 { 102, -1 },
1386 { -1, -1 },
1387 { -1, -1 },
1388 { 17, 2049 },
1389 { -1, -1 },
1390 { 154, -1 },
1391 { -1, -1 },
1392 { -1, -1 },
1393 { 56, -1 },
1394 { 63, -1 },
1395 { 264, -1 },
1396 { -1, -1 },
1397 { -1, -1 },
1398 { -1, -1 },
1399 { 453, -1 },
1400 { -1, -1 },
1401 { -1, -1 },
1402 { 341, -1 },
1403 { -1, -1 },
1404 { -1, -1 },
1405 { -1, -1 },
1406 { -1, -1 },
1407 { -1, -1 },
1408 { 13, 2048 },
1409 { -1, -1 },
1410 { 441, -1 },
1411 { -1, -1 },
1412 { -1, -1 },
1413 { -1, -1 },
1414 { -1, -1 },
1415 { -1, -1 },
1416 { -1, -1 },
1417 { 410, -1 },
1418 { -1, -1 },
1419 { 143, -1 },
1420 { -1, -1 },
1421 { 15, -1 },
1422 { -1, -1 },
1423 { 222, -1 },
1424 { -1, -1 },
1425 { -1, -1 },
1426 { -1, -1 },
1427 { -1, -1 },
1428 { -1, -1 },
1429 { -1, -1 },
1430 { 36, -1 },
1431 { -1, -1 },
1432 { -1, -1 },
1433 { -1, -1 },
1434 { 51, -1 },
1435 { -1, -1 },
1436 { 212, -1 },
1437 { 121, -1 },
1438 { -1, -1 },
1439 { 291, -1 },
1440 { -1, -1 },
1441 { -1, -1 },
1442 { -1, -1 },
1443 { -1, -1 },
1444 { -1, -1 },
1445 { 475, -1 },
1446 { -1, -1 },
1447 { 117, -1 },
1448 { 96, -1 },
1449 { -1, -1 },
1450 { 65, -1 },
1451 { -1, -1 },
1452 { -1, -1 },
1453 { -1, -1 },
1454 { -1, -1 },
1455 { -1, -1 },
1456 { -1, -1 },
1457 { -1, -1 },
1458 { -1, -1 },
1459 { -1, -1 },
1460 { -1, -1 },
1461 { -1, -1 },
1462 { -1, -1 },
1463 { -1, -1 },
1464 { -1, -1 },
1465 { -1, -1 },
1466 { 166, 2112 },
1467 { -1, -1 },
1468 { -1, -1 },
1469 { -1, -1 },
1470 { 32, -1 },
1471 { 380, -1 },
1472 { -1, -1 },
1473 { 368, -1 },
1474 { -1, -1 },
1475 { 468, -1 },
1476 { -1, -1 },
1477 { -1, -1 },
1478 { -1, -1 },
1479 { -1, -1 },
1480 { -1, -1 },
1481 { -1, -1 },
1482 { -1, -1 },
1483 { -1, -1 },
1484 { -1, -1 },
1485 { -1, -1 },
1486 { 446, -1 },
1487 { -1, -1 },
1488 { 116, -1 },
1489 { -1, -1 },
1490 { -1, -1 },
1491 { -1, -1 },
1492 { -1, -1 },
1493 { -1, -1 },
1494 { -1, -1 },
1495 { -1, -1 },
1496 { 377, -1 },
1497 { -1, -1 },
1498 { -1, -1 },
1499 { -1, -1 },
1500 { 86, -1 },
1501 { -1, -1 },
1502 { -1, -1 },
1503 { -1, -1 },
1504 { -1, -1 },
1505 { -1, -1 },
1506 { 371, -1 },
1507 { -1, -1 },
1508 { 220, 2098 },
1509 { -1, -1 },
1510 { 421, -1 },
1511 { -1, -1 },
1512 { 209, -1 },
1513 { -1, -1 },
1514 { 440, -1 },
1515 { 299, -1 },
1516 { -1, -1 },
1517 { 338, -1 },
1518 { -1, -1 },
1519 { 26, 2091 },
1520 { -1, -1 },
1521 { -1, -1 },
1522 { -1, -1 },
1523 { -1, -1 },
1524 { -1, -1 },
1525 { -1, -1 },
1526 { -1, -1 },
1527 { 343, -1 },
1528 { -1, -1 },
1529 { -1, -1 },
1530 { -1, -1 },
1531 { -1, -1 },
1532 { -1, -1 },
1533 { -1, -1 },
1534 { -1, -1 },
1535 { -1, -1 },
1536 { 304, -1 },
1537 { -1, -1 },
1538 { -1, -1 },
1539 { -1, -1 },
1540 { -1, -1 },
1541 { -1, -1 },
1542 { -1, -1 },
1543 { -1, -1 },
1544 { -1, -1 },
1545 { -1, -1 },
1546 { -1, -1 },
1547 { -1, -1 },
1548 { -1, -1 },
1549 { 69, -1 },
1550 { -1, -1 },
1551 { -1, -1 },
1552 { 340, -1 },
1553 { -1, -1 },
1554 { -1, -1 },
1555 { -1, -1 },
1556 { 179, -1 },
1557 { -1, -1 },
1558 { 436, -1 },
1559 { -1, -1 },
1560 { -1, -1 },
1561 { -1, -1 },
1562 { 318, -1 },
1563 { -1, -1 },
1564 { 221, -1 },
1565 { 123, -1 },
1566 { 47, -1 },
1567 { 447, -1 },
1568 { -1, -1 },
1569 { 251, -1 },
1570 { -1, -1 },
1571 { 435, -1 },
1572 { -1, -1 },
1573 { 25, -1 },
1574 { -1, -1 },
1575 { -1, -1 },
1576 { 66, -1 },
1577 { -1, -1 },
1578 { -1, -1 },
1579 { -1, -1 },
1580 { -1, -1 },
1581 { -1, -1 },
1582 { -1, -1 },
1583 { -1, -1 },
1584 { -1, -1 },
1585 { -1, -1 },
1586 { -1, -1 },
1587 { -1, -1 },
1588 { -1, -1 },
1589 { -1, -1 },
1590 { -1, -1 },
1591 { -1, -1 },
1592 { -1, -1 },
1593 { 0, -1 },
1594 { -1, -1 },
1595 { 167, -1 },
1596 { -1, -1 },
1597 { -1, -1 },
1598 { -1, -1 },
1599 { -1, -1 },
1600 { 389, -1 },
1601 { 104, 2058 },
1602 { 283, -1 },
1603 { 41, -1 },
1604 { -1, -1 },
1605 { -1, -1 },
1606 { -1, -1 },
1607 { -1, -1 },
1608 { -1, -1 },
1609 { -1, -1 },
1610 { 348, -1 },
1611 { -1, -1 },
1612 { -1, -1 },
1613 { -1, -1 },
1614 { 504, -1 },
1615 { -1, -1 },
1616 { -1, -1 },
1617 { -1, -1 },
1618 { 9, 2096 },
1619 { -1, -1 },
1620 { -1, -1 },
1621 { -1, -1 },
1622 { 16, -1 },
1623 { -1, -1 },
1624 { -1, -1 },
1625 { -1, -1 },
1626 { 399, -1 },
1627 { -1, -1 },
1628 { 135, -1 },
1629 { 433, -1 },
1630 { 448, -1 },
1631 { 404, -1 },
1632 { -1, -1 },
1633 { -1, -1 },
1634 { -1, -1 },
1635 { -1, -1 },
1636 { -1, -1 },
1637 { -1, -1 },
1638 { -1, -1 },
1639 { -1, -1 },
1640 { -1, -1 },
1641 { -1, -1 },
1642 { 27, -1 },
1643 { -1, -1 },
1644 { -1, -1 },
1645 { -1, -1 },
1646 { -1, -1 },
1647 { -1, -1 },
1648 { -1, -1 },
1649 { -1, -1 },
1650 { -1, -1 },
1651 { -1, -1 },
1652 { -1, -1 },
1653 { 205, 2069 },
1654 { 71, 2061 },
1655 { -1, -1 },
1656 { 286, -1 },
1657 { -1, -1 },
1658 { -1, -1 },
1659 { -1, -1 },
1660 { -1, -1 },
1661 { -1, -1 },
1662 { -1, -1 },
1663 { -1, -1 },
1664 { -1, -1 },
1665 { 469, -1 },
1666 { -1, -1 },
1667 { 478, -1 },
1668 { -1, -1 },
1669 { -1, -1 },
1670 { 417, -1 },
1671 { -1, -1 },
1672 { -1, -1 },
1673 { -1, -1 },
1674 { -1, -1 },
1675 { -1, -1 },
1676 { -1, -1 },
1677 { -1, -1 },
1678 { 48, -1 },
1679 { -1, -1 },
1680 { 217, -1 },
1681 { -1, -1 },
1682 { -1, -1 },
1683 { -1, -1 },
1684 { 548, -1 },
1685 { 129, -1 },
1686 { -1, -1 },
1687 { 227, -1 },
1688 { -1, -1 },
1689 { -1, -1 },
1690 { 111, -1 },
1691 { -1, -1 },
1692 { 308, -1 },
1693 { 161, 2086 },
1694 { -1, -1 },
1695 { -1, -1 },
1696 { -1, -1 },
1697 { -1, -1 },
1698 { -1, -1 },
1699 { -1, -1 },
1700 { -1, -1 },
1701 { -1, -1 },
1702 { 76, 2050 },
1703 { -1, -1 },
1704 { -1, -1 },
1705 { -1, -1 },
1706 { -1, -1 },
1707 { -1, -1 },
1708 { 458, -1 },
1709 { -1, -1 },
1710 { -1, -1 },
1711 { 157, 2063 },
1712 { -1, -1 },
1713 { -1, -1 },
1714 { 182, -1 },
1715 { -1, -1 },
1716 { 382, -1 },
1717 { -1, -1 },
1718 { -1, -1 },
1719 { -1, -1 },
1720 { -1, -1 },
1721 { -1, -1 },
1722 { 519, -1 },
1723 { -1, -1 },
1724 { -1, -1 },
1725 { -1, -1 },
1726 { -1, -1 },
1727 { -1, -1 },
1728 { -1, -1 },
1729 { -1, -1 },
1730 { 277, -1 },
1731 { -1, -1 },
1732 { 113, -1 },
1733 { -1, -1 },
1734 { -1, -1 },
1735 { -1, -1 },
1736 { -1, -1 },
1737 { -1, -1 },
1738 { 58, -1 },
1739 { -1, -1 },
1740 { -1, -1 },
1741 { -1, -1 },
1742 { -1, -1 },
1743 { -1, -1 },
1744 { 239, -1 },
1745 { -1, -1 },
1746 { 165, -1 },
1747 { -1, -1 },
1748 { -1, -1 },
1749 { -1, -1 },
1750 { -1, -1 },
1751 { 134, -1 },
1752 { -1, -1 },
1753 { -1, -1 },
1754 { -1, -1 },
1755 { -1, -1 },
1756 { -1, -1 },
1757 { 508, -1 },
1758 { -1, -1 },
1759 { -1, -1 },
1760 { -1, -1 },
1761 { -1, -1 },
1762 { -1, -1 },
1763 { -1, -1 },
1764 { -1, -1 },
1765 { -1, -1 },
1766 { -1, -1 },
1767 { -1, -1 },
1768 { 265, 2111 },
1769 { -1, -1 },
1770 { -1, -1 },
1771 { -1, -1 },
1772 { -1, -1 },
1773 { -1, -1 },
1774 { -1, -1 },
1775 { -1, -1 },
1776 { -1, -1 },
1777 { -1, -1 },
1778 { -1, -1 },
1779 { -1, -1 },
1780 { 152, -1 },
1781 { -1, -1 },
1782 { -1, -1 },
1783 { -1, -1 },
1784 { 240, -1 },
1785 { -1, -1 },
1786 { 263, -1 },
1787 { -1, -1 },
1788 { -1, -1 },
1789 { -1, -1 },
1790 { -1, -1 },
1791 { -1, -1 },
1792 { -1, -1 },
1793 { -1, -1 },
1794 { 159, -1 },
1795 { -1, -1 },
1796 { -1, -1 },
1797 { -1, -1 },
1798 { -1, -1 },
1799 { -1, -1 },
1800 { -1, -1 },
1801 { -1, -1 },
1802 { -1, -1 },
1803 { -1, -1 },
1804 { 176, -1 },
1805 { -1, -1 },
1806 { -1, -1 },
1807 { -1, -1 },
1808 { -1, -1 },
1809 { -1, -1 },
1810 { -1, -1 },
1811 { -1, -1 },
1812 { -1, -1 },
1813 { -1, -1 },
1814 { -1, -1 },
1815 { -1, -1 },
1816 { -1, -1 },
1817 { 218, -1 },
1818 { -1, -1 },
1819 { -1, -1 },
1820 { -1, -1 },
1821 { -1, -1 },
1822 { -1, -1 },
1823 { 21, -1 },
1824 { -1, -1 },
1825 { -1, -1 },
1826 { -1, -1 },
1827 { -1, -1 },
1828 { -1, -1 },
1829 { -1, -1 },
1830 { -1, -1 },
1831 { -1, -1 },
1832 { -1, -1 },
1833 { 12, -1 },
1834 { -1, -1 },
1835 { -1, -1 },
1836 { -1, -1 },
1837 { -1, -1 },
1838 { 312, -1 },
1839 { -1, -1 },
1840 { -1, -1 },
1841 { -1, -1 },
1842 { 358, 2094 },
1843 { -1, -1 },
1844 { -1, -1 },
1845 { -1, -1 },
1846 { -1, -1 },
1847 { 489, -1 },
1848 { -1, -1 },
1849 { 361, -1 },
1850 { -1, -1 },
1851 { -1, -1 },
1852 { -1, -1 },
1853 { 89, -1 },
1854 { -1, -1 },
1855 { -1, -1 },
1856 { -1, -1 },
1857 { -1, -1 },
1858 { -1, -1 },
1859 { -1, -1 },
1860 { -1, -1 },
1861 { -1, -1 },
1862 { 77, -1 },
1863 { 124, -1 },
1864 { -1, -1 },
1865 { -1, -1 },
1866 { -1, -1 },
1867 { -1, -1 },
1868 { 300, -1 },
1869 { 127, 2119 },
1870 { 390, -1 },
1871 { -1, -1 },
1872 { -1, -1 },
1873 { 295, -1 },
1874 { -1, -1 },
1875 { -1, -1 },
1876 { -1, -1 },
1877 { -1, -1 },
1878 { -1, -1 },
1879 { -1, -1 },
1880 { -1, -1 },
1881 { -1, -1 },
1882 { -1, -1 },
1883 { 178, -1 },
1884 { -1, -1 },
1885 { -1, -1 },
1886 { 131, -1 },
1887 { -1, -1 },
1888 { 467, -1 },
1889 { 279, -1 },
1890 { -1, -1 },
1891 { -1, -1 },
1892 { -1, -1 },
1893 { -1, -1 },
1894 { -1, -1 },
1895 { 351, -1 },
1896 { -1, -1 },
1897 { 271, -1 },
1898 { 370, 2089 },
1899 { -1, -1 },
1900 { -1, -1 },
1901 { -1, -1 },
1902 { 309, 2079 },
1903 { -1, -1 },
1904 { -1, -1 },
1905 { -1, -1 },
1906 { 170, -1 },
1907 { -1, -1 },
1908 { -1, -1 },
1909 { 180, -1 },
1910 { -1, -1 },
1911 { 153, -1 },
1912 { -1, -1 },
1913 { -1, -1 },
1914 { 141, -1 },
1915 { 136, 2082 },
1916 { -1, -1 },
1917 { 561, -1 },
1918 { -1, -1 },
1919 { 164, -1 },
1920 { 430, -1 },
1921 { -1, -1 },
1922 { -1, -1 },
1923 { -1, -1 },
1924 { -1, -1 },
1925 { -1, -1 },
1926 { -1, -1 },
1927 { -1, -1 },
1928 { 138, -1 },
1929 { 202, -1 },
1930 { 466, -1 },
1931 { -1, -1 },
1932 { -1, -1 },
1933 { -1, -1 },
1934 { -1, -1 },
1935 { 443, -1 },
1936 { -1, -1 },
1937 { -1, -1 },
1938 { -1, -1 },
1939 { -1, -1 },
1940 { -1, -1 },
1941 { -1, -1 },
1942 { -1, -1 },
1943 { 456, -1 },
1944 { -1, -1 },
1945 { -1, -1 },
1946 { -1, -1 },
1947 { -1, -1 },
1948 { 353, -1 },
1949 { -1, -1 },
1950 { -1, -1 },
1951 { -1, -1 },
1952 { -1, -1 },
1953 { -1, -1 },
1954 { -1, -1 },
1955 { -1, -1 },
1956 { 245, -1 },
1957 { -1, -1 },
1958 { -1, -1 },
1959 { -1, -1 },
1960 { -1, -1 },
1961 { -1, -1 },
1962 { -1, -1 },
1963 { 190, 2097 },
1964 { 38, -1 },
1965 { -1, -1 },
1966 { -1, -1 },
1967 { -1, -1 },
1968 { -1, -1 },
1969 { -1, -1 },
1970 { 53, -1 },
1971 { -1, -1 },
1972 { -1, -1 },
1973 { -1, -1 },
1974 { 249, -1 },
1975 { -1, -1 },
1976 { 552, -1 },
1977 { -1, -1 },
1978 { 149, -1 },
1979 { -1, -1 },
1980 { -1, -1 },
1981 { 424, -1 },
1982 { 54, -1 },
1983 { -1, -1 },
1984 { -1, -1 },
1985 { -1, -1 },
1986 { 431, -1 },
1987 { -1, -1 },
1988 { -1, -1 },
1989 { -1, -1 },
1990 { -1, -1 },
1991 { 375, -1 },
1992 { -1, -1 },
1993 { -1, -1 },
1994 { -1, -1 },
1995 { -1, -1 },
1996 { -1, -1 },
1997 { -1, -1 },
1998 { -1, -1 },
1999 { -1, -1 },
2000 { -1, -1 },
2001 { -1, -1 },
2002 { 276, -1 },
2003 { -1, -1 },
2004 { 45, -1 },
2005 { -1, -1 },
2006 { -1, -1 },
2007 { -1, -1 },
2008 { -1, -1 },
2009 { -1, -1 },
2010 { -1, -1 },
2011 { -1, -1 },
2012 { -1, -1 },
2013 { 20, -1 },
2014 { 101, -1 },
2015 { -1, -1 },
2016 { -1, -1 },
2017 { 215, -1 },
2018 { -1, -1 },
2019 { -1, -1 },
2020 { 18, -1 },
2021 { -1, -1 },
2022 { -1, -1 },
2023 { -1, -1 },
2024 { 261, 2100 },
2025 { 537, -1 },
2026 { -1, -1 },
2027 { -1, -1 },
2028 { 294, -1 },
2029 { 49, -1 },
2030 { 383, -1 },
2031 { 486, -1 },
2032 { 75, 2056 },
2033 { -1, -1 },
2034 { 310, 2108 },
2035 { -1, -1 },
2036 { -1, -1 },
2037 { -1, -1 },
2038 { 542, -1 },
2039 { 133, -1 },
2040 { -1, -1 },
2041 { -1, -1 },
2042 { -1, -1 },
2043 { -1, -1 },
2044 { 539, -1 },
2045 { -1, -1 },
2046 { -1, -1 },
2047 { -1, -1 },
2048 { -1, -1 },
2049 { -1, -1 },
2050 { -1, -1 },
2051 { -1, -1 },
2052 { 272, -1 },
2053 { -1, -1 },
2054 { 187, -1 },
2055 { -1, -1 },
2056 { -1, -1 },
2057 { -1, -1 },
2058 { -1, -1 },
2059 { -1, -1 },
2060 { -1, -1 },
2061 { -1, -1 },
2062 { 275, -1 },
2063 { -1, -1 },
2064 { -1, -1 },
2065 { -1, -1 },
2066 { 378, -1 },
2067 { -1, -1 },
2068 { -1, -1 },
2069 { 445, -1 },
2070 { -1, -1 },
2071 { 485, -1 },
2072 { -1, -1 },
2073 { -1, -1 },
2074 { -1, -1 },
2075 { -1, -1 },
2076 { 364, -1 },
2077 { -1, -1 },
2078 { -1, -1 },
2079 { -1, -1 },
2080 { 496, -1 },
2081 { -1, -1 },
2082 { -1, -1 },
2083 { 172, -1 },
2084 { -1, -1 },
2085 { -1, -1 },
2086 { -1, -1 },
2087 { -1, -1 },
2088 { -1, -1 },
2089 { -1, -1 },
2090 { -1, -1 },
2091 { -1, -1 },
2092 { -1, -1 },
2093 { -1, -1 },
2094 { 67, -1 },
2095 { -1, -1 },
2096 { -1, -1 },
2097 { -1, -1 },
2098 { -1, -1 },
2099 { -1, -1 },
2100 { -1, -1 },
2101 { -1, -1 },
2102 { -1, -1 },
2103 { 324, -1 },
2104 { 463, -1 },
2105 { -1, -1 },
2106 { -1, -1 },
2107 { -1, -1 },
2108 { -1, -1 },
2109 { -1, -1 },
2110 { -1, -1 },
2111 { -1, -1 },
2112 { -1, -1 },
2113 { -1, -1 },
2114 { -1, -1 },
2115 { -1, -1 },
2116 { -1, -1 },
2117 { -1, -1 },
2118 { -1, -1 },
2119 { -1, -1 },
2120 { -1, -1 },
2121 { -1, -1 },
2122 { -1, -1 },
2123 { -1, -1 },
2124 { -1, -1 },
2125 { -1, -1 },
2126 { 347, -1 },
2127 { -1, -1 },
2128 { 352, 2099 },
2129 { -1, -1 },
2130 { 280, -1 },
2131 { -1, -1 },
2132 { -1, -1 },
2133 { -1, -1 },
2134 { -1, -1 },
2135 { 520, -1 },
2136 { -1, -1 },
2137 { -1, -1 },
2138 { 335, -1 },
2139 { -1, -1 },
2140 { -1, -1 },
2141 { -1, -1 },
2142 { -1, -1 },
2143 { -1, -1 },
2144 { -1, -1 },
2145 { -1, -1 },
2146 { 540, -1 },
2147 { -1, -1 },
2148 { 254, 2120 },
2149 { -1, -1 },
2150 { -1, -1 },
2151 { -1, -1 },
2152 { -1, -1 },
2153 { -1, -1 },
2154 { 189, -1 },
2155 { -1, -1 },
2156 { -1, -1 },
2157 { -1, -1 },
2158 { -1, -1 },
2159 { -1, -1 },
2160 { -1, -1 },
2161 { -1, -1 },
2162 { -1, -1 },
2163 { -1, -1 },
2164 { 163, -1 },
2165 { -1, -1 },
2166 { -1, -1 },
2167 { -1, -1 },
2168 { -1, -1 },
2169 { -1, -1 },
2170 { -1, -1 },
2171 { -1, -1 },
2172 { 362, -1 },
2173 { -1, -1 },
2174 { -1, -1 },
2175 { -1, -1 },
2176 { -1, -1 },
2177 { -1, -1 },
2178 { -1, -1 },
2179 { -1, -1 },
2180 { -1, -1 },
2181 { -1, -1 },
2182 { -1, -1 },
2183 { -1, -1 },
2184 { -1, -1 },
2185 { -1, -1 },
2186 { -1, -1 },
2187 { 354, -1 },
2188 { -1, -1 },
2189 { -1, -1 },
2190 { 379, 2087 },
2191 { -1, -1 },
2192 { -1, -1 },
2193 { 330, -1 },
2194 { -1, -1 },
2195 { -1, -1 },
2196 { 19, -1 },
2197 { -1, -1 },
2198 { 474, -1 },
2199 { -1, -1 },
2200 { -1, -1 },
2201 { -1, -1 },
2202 { -1, -1 },
2203 { -1, -1 },
2204 { -1, -1 },
2205 { 37, 2076 },
2206 { -1, -1 },
2207 { -1, -1 },
2208 { -1, -1 },
2209 { 476, -1 },
2210 { -1, -1 },
2211 { -1, -1 },
2212 { -1, -1 },
2213 { -1, -1 },
2214 { -1, -1 },
2215 { -1, -1 },
2216 { -1, -1 },
2217 { 28, -1 },
2218 { -1, -1 },
2219 { -1, -1 },
2220 { -1, -1 },
2221 { -1, -1 },
2222 { -1, -1 },
2223 { -1, -1 },
2224 { 560, -1 },
2225 { -1, -1 },
2226 { 543, -1 },
2227 { -1, -1 },
2228 { 439, -1 },
2229 { -1, -1 },
2230 { -1, -1 },
2231 { -1, -1 },
2232 { -1, -1 },
2233 { -1, -1 },
2234 { -1, -1 },
2235 { 33, -1 },
2236 { -1, -1 },
2237 { -1, -1 },
2238 { -1, -1 },
2239 { -1, -1 },
2240 { 305, 2113 },
2241 { 125, -1 },
2242 { 307, -1 },
2243 { -1, -1 },
2244 { -1, -1 },
2245 { 477, -1 },
2246 { -1, -1 },
2247 { -1, -1 },
2248 { 87, -1 },
2249 { -1, -1 },
2250 { -1, -1 },
2251 { -1, -1 },
2252 { 554, -1 },
2253 { -1, -1 },
2254 { -1, -1 },
2255 { 61, -1 },
2256 { -1, -1 },
2257 { -1, -1 },
2258 { -1, -1 },
2259 { 88, 2054 },
2260 { -1, -1 },
2261 { -1, -1 },
2262 { -1, -1 },
2263 { -1, -1 },
2264 { -1, -1 },
2265 { -1, -1 },
2266 { 553, -1 },
2267 { -1, -1 },
2268 { -1, -1 },
2269 { 549, -1 },
2270 { -1, -1 },
2271 { -1, -1 },
2272 { -1, -1 },
2273 { -1, -1 },
2274 { 169, 2075 },
2275 { 255, -1 },
2276 { 396, -1 },
2277 { 236, -1 },
2278 { -1, -1 },
2279 { -1, -1 },
2280 { -1, -1 },
2281 { 162, -1 },
2282 { -1, -1 },
2283 { 181, -1 },
2284 { -1, -1 },
2285 { -1, -1 },
2286 { -1, -1 },
2287 { 244, -1 },
2288 { -1, -1 },
2289 { -1, -1 },
2290 { -1, -1 },
2291 { -1, -1 },
2292 { 10, -1 },
2293 { -1, -1 },
2294 { -1, -1 },
2295 { -1, -1 },
2296 { 495, -1 },
2297 { -1, -1 },
2298 { -1, -1 },
2299 { 455, -1 },
2300 { 2, 2051 },
2301 { 314, -1 },
2302 { 558, -1 },
2303 { 29, 2066 },
2304 { -1, -1 },
2305 { -1, -1 },
2306 { -1, -1 },
2307 { -1, -1 },
2308 { -1, -1 },
2309 { 413, -1 },
2310 { -1, -1 },
2311 { -1, -1 },
2312 { 84, -1 },
2313 { -1, -1 },
2314 { -1, -1 },
2315 { -1, -1 },
2316 { -1, -1 },
2317 { 225, -1 },
2318 { -1, -1 },
2319 { 487, -1 },
2320 { -1, -1 },
2321 { -1, -1 },
2322 { -1, -1 },
2323 { -1, -1 },
2324 { 130, -1 },
2325 { -1, -1 },
2326 { -1, -1 },
2327 { 518, -1 },
2328 { -1, -1 },
2329 { 1, -1 },
2330 { -1, -1 },
2331 { -1, -1 },
2332 { -1, -1 },
2333 { 278, -1 },
2334 { -1, -1 },
2335 { -1, -1 },
2336 { 197, -1 },
2337 { -1, -1 },
2338 { -1, -1 },
2339 { -1, -1 },
2340 { -1, -1 },
2341 { -1, -1 },
2342 { 200, -1 },
2343 { -1, -1 },
2344 { -1, -1 },
2345 { -1, -1 },
2346 { -1, -1 },
2347 { -1, -1 },
2348 { -1, -1 },
2349 { 81, -1 },
2350 { 322, -1 },
2351 { -1, -1 },
2352 { 428, -1 },
2353 { -1, -1 },
2354 { -1, -1 },
2355 { -1, -1 },
2356 { -1, -1 },
2357 { 40, 2055 },
2358 { -1, -1 },
2359 { 229, -1 },
2360 { 337, -1 },
2361 { -1, -1 },
2362 { -1, -1 },
2363 { -1, -1 },
2364 { -1, -1 },
2365 { 319, -1 },
2366 { -1, -1 },
2367 { -1, -1 },
2368 { -1, -1 },
2369 { -1, -1 },
2370 { -1, -1 },
2371 { 400, -1 },
2372 { -1, -1 },
2373 { -1, -1 },
2374 { -1, -1 },
2375 { -1, -1 },
2376 { 374, -1 },
2377 { 112, -1 },
2378 { -1, -1 },
2379 { -1, -1 },
2380 { 356, -1 },
2381 { -1, -1 },
2382 { -1, -1 },
2383 { 266, -1 },
2384 { 429, -1 },
2385 { -1, -1 },
2386 { -1, -1 },
2387 { -1, -1 },
2388 { 401, -1 },
2389 { 425, -1 },
2390 { 526, -1 },
2391 { -1, -1 },
2392 { 191, -1 },
2393 { -1, -1 },
2394 { -1, -1 },
2395 { -1, -1 },
2396 { 524, -1 },
2397 { -1, -1 },
2398 { -1, -1 },
2399 { -1, -1 },
2400 { -1, -1 },
2401 { 369, -1 },
2402 { -1, -1 },
2403 { 195, -1 },
2404 { -1, -1 },
2405 { -1, -1 },
2406 { -1, -1 },
2407 { -1, -1 },
2408 { -1, -1 },
2409 { 253, -1 },
2410 { 464, -1 },
2411 { 329, -1 },
2412 { -1, -1 },
2413 { 199, 2103 },
2414 { -1, -1 },
2415 { -1, -1 },
2416 { -1, -1 },
2417 { -1, -1 },
2418 { 419, -1 },
2419 { 78, -1 },
2420 { -1, -1 },
2421 { -1, -1 },
2422 { 68, -1 },
2423 { -1, -1 },
2424 { -1, -1 },
2425 { -1, -1 },
2426 { -1, -1 },
2427 { -1, -1 },
2428 { -1, -1 },
2429 { -1, -1 },
2430 { -1, -1 },
2431 { 160, -1 },
2432 { 472, -1 },
2433 { -1, -1 },
2434 { -1, -1 },
2435 { -1, -1 },
2436 { -1, -1 },
2437 { -1, -1 },
2438 { -1, -1 },
2439 { -1, -1 },
2440 { -1, -1 },
2441 { -1, -1 },
2442 { -1, -1 },
2443 { 73, -1 },
2444 { -1, -1 },
2445 { -1, -1 },
2446 { -1, -1 },
2447 { -1, -1 },
2448 { -1, -1 },
2449 { -1, -1 },
2450 { 92, 2052 },
2451 { -1, -1 },
2452 { -1, -1 },
2453 { -1, -1 },
2454 { -1, -1 },
2455 { -1, -1 },
2456 { -1, -1 },
2457 { 479, 2116 },
2458 { -1, -1 },
2459 { -1, -1 },
2460 { -1, -1 },
2461 { 284, -1 },
2462 { -1, -1 },
2463 { -1, -1 },
2464 { -1, -1 },
2465 { 332, -1 },
2466 { -1, -1 },
2467 { -1, -1 },
2468 { -1, -1 },
2469 { -1, -1 },
2470 { -1, -1 },
2471 { -1, -1 },
2472 { -1, -1 },
2473 { 357, -1 },
2474 { -1, -1 },
2475 { -1, -1 },
2476 { -1, -1 },
2477 { -1, -1 },
2478 { -1, -1 },
2479 { -1, -1 },
2480 { -1, -1 },
2481 { 350, -1 },
2482 { -1, -1 },
2483 { -1, -1 },
2484 { 132, -1 },
2485 { -1, -1 },
2486 { -1, -1 },
2487 { -1, -1 },
2488 { -1, -1 },
2489 { -1, -1 },
2490 { -1, -1 },
2491 { -1, -1 },
2492 { -1, -1 },
2493 { -1, -1 },
2494 { 43, -1 },
2495 { -1, -1 },
2496 { -1, -1 },
2497 { -1, -1 },
2498 { 360, -1 },
2499 { -1, -1 },
2500 { 349, -1 },
2501 { -1, -1 },
2502 { -1, -1 },
2503 { -1, -1 },
2504 { -1, -1 },
2505 { -1, -1 },
2506 { -1, -1 },
2507 { -1, -1 },
2508 { 414, -1 },
2509 { -1, -1 },
2510 { -1, -1 },
2511 { -1, -1 },
2512 { -1, -1 },
2513 { -1, -1 },
2514 { 267, -1 },
2515 { -1, -1 },
2516 { -1, -1 },
2517 { -1, -1 },
2518 { -1, -1 },
2519 { -1, -1 },
2520 { 44, -1 },
2521 { -1, -1 },
2522 { -1, -1 },
2523 { -1, -1 },
2524 { 346, -1 },
2525 { -1, -1 },
2526 { -1, -1 },
2527 { 388, -1 },
2528 { 385, -1 },
2529 { -1, -1 },
2530 { -1, -1 },
2531 { -1, -1 },
2532 { -1, -1 },
2533 { -1, -1 },
2534 { -1, -1 },
2535 { -1, -1 },
2536 { -1, -1 },
2537 { -1, -1 },
2538 { -1, -1 },
2539 { -1, -1 },
2540 { -1, -1 },
2541 { -1, -1 },
2542 { -1, -1 },
2543 { -1, -1 },
2544 { 544, -1 },
2545 { -1, -1 },
2546 { 90, -1 },
2547 { -1, -1 },
2548 { -1, -1 },
2549 { 216, 2065 },
2550 { 11, -1 },
2551 { 148, 2114 },
2552 { -1, -1 },
2553 { -1, -1 },
2554 { -1, -1 },
2555 { -1, -1 },
2556 { -1, -1 },
2557 { -1, -1 },
2558 { -1, -1 },
2559 { -1, -1 },
2560 { -1, -1 },
2561 { -1, -1 },
2562 { -1, -1 },
2563 { -1, -1 },
2564 { -1, -1 },
2565 { -1, -1 },
2566 { -1, -1 },
2567 { -1, -1 },
2568 { -1, -1 },
2569 { 256, -1 },
2570 { -1, -1 },
2571 { -1, -1 },
2572 { 59, -1 },
2573 { -1, -1 },
2574 { -1, -1 },
2575 { -1, -1 },
2576 { -1, -1 },
2577 { 326, -1 },
2578 { -1, -1 },
2579 { 394, -1 },
2580 { -1, -1 },
2581 { 151, 2122 },
2582 { -1, -1 },
2583 { -1, -1 },
2584 { -1, -1 },
2585 { -1, -1 },
2586 { 4, -1 },
2587 { -1, -1 },
2588 { -1, -1 },
2589 { -1, -1 },
2590 { -1, -1 },
2591 { -1, -1 },
2592 { -1, -1 },
2593 { 497, -1 },
2594 { -1, -1 },
2595 { -1, -1 },
2596 { 484, -1 },
2597 { -1, -1 },
2598 { 423, 2118 },
2599 { -1, -1 },
2600 { -1, -1 },
2601 { -1, -1 },
2602 { -1, -1 },
2603 { 344, -1 },
2604 { -1, -1 },
2605 { 365, -1 },
2606 { 204, 2107 },
2607 { -1, -1 },
2608 { -1, -1 },
2609 { -1, -1 },
2610 { -1, -1 },
2611 { -1, -1 },
2612 { -1, -1 },
2613 { -1, -1 },
2614 { 434, -1 },
2615 { -1, -1 },
2616 { 282, -1 },
2617 { -1, -1 },
2618 { -1, -1 },
2619 { -1, -1 },
2620 { 323, -1 },
2621 { 398, -1 },
2622 { -1, -1 },
2623 { -1, -1 },
2624 { -1, -1 },
2625 { -1, -1 },
2626 { -1, -1 },
2627 { -1, -1 },
2628 { -1, -1 },
2629 { 208, -1 },
2630 { -1, -1 },
2631 { -1, -1 },
2632 { -1, -1 },
2633 { 372, -1 },
2634 { -1, -1 },
2635 { 171, 2062 },
2636 { -1, -1 },
2637 { -1, -1 },
2638 { -1, -1 },
2639 { -1, -1 },
2640 { -1, -1 },
2641 { -1, -1 },
2642 { 64, -1 },
2643 { -1, -1 },
2644 { -1, -1 },
2645 { 454, -1 },
2646 { -1, -1 },
2647 { -1, -1 },
2648 { -1, -1 },
2649 { -1, -1 },
2650 { -1, -1 },
2651 { -1, -1 },
2652 { -1, -1 },
2653 { -1, -1 },
2654 { -1, -1 },
2655 { 392, -1 },
2656 { 140, 2123 },
2657 { -1, -1 },
2658 { 510, -1 },
2659 { -1, -1 },
2660 { -1, -1 },
2661 { -1, -1 },
2662 { -1, -1 },
2663 { 70, -1 },
2664 { 83, -1 },
2665 { 114, 2068 },
2666 { 118, -1 },
2667 { 120, -1 },
2668 { 146, -1 },
2669 { 155, 2090 },
2670 { 168, -1 },
2671 { 193, -1 },
2672 { 196, 2059 },
2673 { 203, -1 },
2674 { 206, 2074 },
2675 { 207, -1 },
2676 { 211, -1 },
2677 { 226, -1 },
2678 { 230, -1 },
2679 { 232, -1 },
2680 { 233, -1 },
2681 { 252, 2071 },
2682 { 257, -1 },
2683 { 258, -1 },
2684 { 269, 2124 },
2685 { 288, -1 },
2686 { 289, -1 },
2687 { 292, -1 },
2688 { 293, -1 },
2689 { 296, -1 },
2690 { 297, -1 },
2691 { 302, -1 },
2692 { 311, -1 },
2693 { 316, -1 },
2694 { 317, -1 },
2695 { 325, 2095 },
2696 { 327, -1 },
2697 { 328, -1 },
2698 { 367, 2101 },
2699 { 373, -1 },
2700 { 381, -1 },
2701 { 384, -1 },
2702 { 386, -1 },
2703 { 387, -1 },
2704 { 391, -1 },
2705 { 393, -1 },
2706 { 397, -1 },
2707 { 403, -1 },
2708 { 405, -1 },
2709 { 407, -1 },
2710 { 415, -1 },
2711 { 418, -1 },
2712 { 432, -1 },
2713 { 438, -1 },
2714 { 451, -1 },
2715 { 461, -1 },
2716 { 462, -1 },
2717 { 473, -1 },
2718 { 492, -1 },
2719 { 493, -1 },
2720 { 498, -1 },
2721 { 500, -1 },
2722 { 502, -1 },
2723 { 503, -1 },
2724 { 506, -1 },
2725 { 507, -1 },
2726 { 509, -1 },
2727 { 511, -1 },
2728 { 523, -1 },
2729 { 529, -1 },
2730 { 533, -1 },
2731 { 534, -1 },
2732 { 535, -1 },
2733 { 536, -1 },
2734 { 541, -1 },
2735 { 545, -1 },
2736 { 546, -1 },
2737 { 547, -1 },
2738 { 550, -1 },
2739 { 555, -1 },
2740};
2741
2742
2743static const HashTableValue JSWebGL2RenderingContextConstructorTableValues[] =
2744{
2745 { "READ_BUFFER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0C02) } },
2746 { "UNPACK_ROW_LENGTH", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0CF2) } },
2747 { "UNPACK_SKIP_ROWS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0CF3) } },
2748 { "UNPACK_SKIP_PIXELS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0CF4) } },
2749 { "PACK_ROW_LENGTH", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0D02) } },
2750 { "PACK_SKIP_ROWS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0D03) } },
2751 { "PACK_SKIP_PIXELS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0D04) } },
2752 { "COLOR", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1800) } },
2753 { "DEPTH", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1801) } },
2754 { "STENCIL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1802) } },
2755 { "RED", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1903) } },
2756 { "RGB8", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8051) } },
2757 { "RGBA8", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8058) } },
2758 { "RGB10_A2", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8059) } },
2759 { "TEXTURE_BINDING_3D", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x806A) } },
2760 { "UNPACK_SKIP_IMAGES", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x806D) } },
2761 { "UNPACK_IMAGE_HEIGHT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x806E) } },
2762 { "TEXTURE_3D", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x806F) } },
2763 { "TEXTURE_WRAP_R", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8072) } },
2764 { "MAX_3D_TEXTURE_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8073) } },
2765 { "UNSIGNED_INT_2_10_10_10_REV", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8368) } },
2766 { "MAX_ELEMENTS_VERTICES", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x80E8) } },
2767 { "MAX_ELEMENTS_INDICES", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x80E9) } },
2768 { "TEXTURE_MIN_LOD", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x813A) } },
2769 { "TEXTURE_MAX_LOD", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x813B) } },
2770 { "TEXTURE_BASE_LEVEL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x813C) } },
2771 { "TEXTURE_MAX_LEVEL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x813D) } },
2772 { "MIN", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8007) } },
2773 { "MAX", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8008) } },
2774 { "DEPTH_COMPONENT24", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x81A6) } },
2775 { "MAX_TEXTURE_LOD_BIAS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84FD) } },
2776 { "TEXTURE_COMPARE_MODE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x884C) } },
2777 { "TEXTURE_COMPARE_FUNC", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x884D) } },
2778 { "CURRENT_QUERY", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8865) } },
2779 { "QUERY_RESULT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8866) } },
2780 { "QUERY_RESULT_AVAILABLE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8867) } },
2781 { "STREAM_READ", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x88E1) } },
2782 { "STREAM_COPY", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x88E2) } },
2783 { "STATIC_READ", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x88E5) } },
2784 { "STATIC_COPY", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x88E6) } },
2785 { "DYNAMIC_READ", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x88E9) } },
2786 { "DYNAMIC_COPY", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x88EA) } },
2787 { "MAX_DRAW_BUFFERS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8824) } },
2788 { "DRAW_BUFFER0", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8825) } },
2789 { "DRAW_BUFFER1", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8826) } },
2790 { "DRAW_BUFFER2", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8827) } },
2791 { "DRAW_BUFFER3", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8828) } },
2792 { "DRAW_BUFFER4", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8829) } },
2793 { "DRAW_BUFFER5", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x882A) } },
2794 { "DRAW_BUFFER6", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x882B) } },
2795 { "DRAW_BUFFER7", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x882C) } },
2796 { "DRAW_BUFFER8", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x882D) } },
2797 { "DRAW_BUFFER9", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x882E) } },
2798 { "DRAW_BUFFER10", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x882F) } },
2799 { "DRAW_BUFFER11", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8830) } },
2800 { "DRAW_BUFFER12", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8831) } },
2801 { "DRAW_BUFFER13", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8832) } },
2802 { "DRAW_BUFFER14", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8833) } },
2803 { "DRAW_BUFFER15", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8834) } },
2804 { "MAX_FRAGMENT_UNIFORM_COMPONENTS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B49) } },
2805 { "MAX_VERTEX_UNIFORM_COMPONENTS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B4A) } },
2806 { "SAMPLER_3D", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B5F) } },
2807 { "SAMPLER_2D_SHADOW", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B62) } },
2808 { "FRAGMENT_SHADER_DERIVATIVE_HINT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B8B) } },
2809 { "PIXEL_PACK_BUFFER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x88EB) } },
2810 { "PIXEL_UNPACK_BUFFER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x88EC) } },
2811 { "PIXEL_PACK_BUFFER_BINDING", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x88ED) } },
2812 { "PIXEL_UNPACK_BUFFER_BINDING", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x88EF) } },
2813 { "FLOAT_MAT2x3", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B65) } },
2814 { "FLOAT_MAT2x4", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B66) } },
2815 { "FLOAT_MAT3x2", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B67) } },
2816 { "FLOAT_MAT3x4", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B68) } },
2817 { "FLOAT_MAT4x2", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B69) } },
2818 { "FLOAT_MAT4x3", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B6A) } },
2819 { "SRGB", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C40) } },
2820 { "SRGB8", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C41) } },
2821 { "SRGB8_ALPHA8", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C43) } },
2822 { "COMPARE_REF_TO_TEXTURE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x884E) } },
2823 { "RGBA32F", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8814) } },
2824 { "RGB32F", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8815) } },
2825 { "RGBA16F", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x881A) } },
2826 { "RGB16F", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x881B) } },
2827 { "VERTEX_ATTRIB_ARRAY_INTEGER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x88FD) } },
2828 { "MAX_ARRAY_TEXTURE_LAYERS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x88FF) } },
2829 { "MIN_PROGRAM_TEXEL_OFFSET", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8904) } },
2830 { "MAX_PROGRAM_TEXEL_OFFSET", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8905) } },
2831 { "MAX_VARYING_COMPONENTS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B4B) } },
2832 { "TEXTURE_2D_ARRAY", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C1A) } },
2833 { "TEXTURE_BINDING_2D_ARRAY", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C1D) } },
2834 { "R11F_G11F_B10F", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C3A) } },
2835 { "UNSIGNED_INT_10F_11F_11F_REV", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C3B) } },
2836 { "RGB9_E5", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C3D) } },
2837 { "UNSIGNED_INT_5_9_9_9_REV", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C3E) } },
2838 { "TRANSFORM_FEEDBACK_BUFFER_MODE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C7F) } },
2839 { "MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C80) } },
2840 { "TRANSFORM_FEEDBACK_VARYINGS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C83) } },
2841 { "TRANSFORM_FEEDBACK_BUFFER_START", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C84) } },
2842 { "TRANSFORM_FEEDBACK_BUFFER_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C85) } },
2843 { "TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C88) } },
2844 { "RASTERIZER_DISCARD", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C89) } },
2845 { "MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C8A) } },
2846 { "MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C8B) } },
2847 { "INTERLEAVED_ATTRIBS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C8C) } },
2848 { "SEPARATE_ATTRIBS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C8D) } },
2849 { "TRANSFORM_FEEDBACK_BUFFER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C8E) } },
2850 { "TRANSFORM_FEEDBACK_BUFFER_BINDING", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C8F) } },
2851 { "RGBA32UI", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D70) } },
2852 { "RGB32UI", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D71) } },
2853 { "RGBA16UI", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D76) } },
2854 { "RGB16UI", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D77) } },
2855 { "RGBA8UI", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D7C) } },
2856 { "RGB8UI", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D7D) } },
2857 { "RGBA32I", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D82) } },
2858 { "RGB32I", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D83) } },
2859 { "RGBA16I", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D88) } },
2860 { "RGB16I", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D89) } },
2861 { "RGBA8I", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D8E) } },
2862 { "RGB8I", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D8F) } },
2863 { "RED_INTEGER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D94) } },
2864 { "RGB_INTEGER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D98) } },
2865 { "RGBA_INTEGER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D99) } },
2866 { "SAMPLER_2D_ARRAY", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DC1) } },
2867 { "SAMPLER_2D_ARRAY_SHADOW", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DC4) } },
2868 { "SAMPLER_CUBE_SHADOW", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DC5) } },
2869 { "UNSIGNED_INT_VEC2", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DC6) } },
2870 { "UNSIGNED_INT_VEC3", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DC7) } },
2871 { "UNSIGNED_INT_VEC4", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DC8) } },
2872 { "INT_SAMPLER_2D", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DCA) } },
2873 { "INT_SAMPLER_3D", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DCB) } },
2874 { "INT_SAMPLER_CUBE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DCC) } },
2875 { "INT_SAMPLER_2D_ARRAY", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DCF) } },
2876 { "UNSIGNED_INT_SAMPLER_2D", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DD2) } },
2877 { "UNSIGNED_INT_SAMPLER_3D", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DD3) } },
2878 { "UNSIGNED_INT_SAMPLER_CUBE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DD4) } },
2879 { "UNSIGNED_INT_SAMPLER_2D_ARRAY", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DD7) } },
2880 { "DEPTH_COMPONENT32F", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CAC) } },
2881 { "DEPTH32F_STENCIL8", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CAD) } },
2882 { "FLOAT_32_UNSIGNED_INT_24_8_REV", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DAD) } },
2883 { "FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8210) } },
2884 { "FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8211) } },
2885 { "FRAMEBUFFER_ATTACHMENT_RED_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8212) } },
2886 { "FRAMEBUFFER_ATTACHMENT_GREEN_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8213) } },
2887 { "FRAMEBUFFER_ATTACHMENT_BLUE_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8214) } },
2888 { "FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8215) } },
2889 { "FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8216) } },
2890 { "FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8217) } },
2891 { "FRAMEBUFFER_DEFAULT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8218) } },
2892#if ENABLE(WEBGL)
2893 { "DEPTH_STENCIL_ATTACHMENT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x821A) } },
2894#else
2895 { 0, 0, NoIntrinsic, { 0, 0 } },
2896#endif
2897#if ENABLE(WEBGL)
2898 { "DEPTH_STENCIL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84F9) } },
2899#else
2900 { 0, 0, NoIntrinsic, { 0, 0 } },
2901#endif
2902 { "UNSIGNED_INT_24_8", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84FA) } },
2903 { "DEPTH24_STENCIL8", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x88F0) } },
2904 { "UNSIGNED_NORMALIZED", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C17) } },
2905 { "DRAW_FRAMEBUFFER_BINDING", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CA6) } },
2906 { "READ_FRAMEBUFFER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CA8) } },
2907 { "DRAW_FRAMEBUFFER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CA9) } },
2908 { "READ_FRAMEBUFFER_BINDING", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CAA) } },
2909 { "RENDERBUFFER_SAMPLES", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CAB) } },
2910 { "FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CD4) } },
2911 { "MAX_COLOR_ATTACHMENTS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CDF) } },
2912 { "COLOR_ATTACHMENT1", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CE1) } },
2913 { "COLOR_ATTACHMENT2", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CE2) } },
2914 { "COLOR_ATTACHMENT3", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CE3) } },
2915 { "COLOR_ATTACHMENT4", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CE4) } },
2916 { "COLOR_ATTACHMENT5", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CE5) } },
2917 { "COLOR_ATTACHMENT6", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CE6) } },
2918 { "COLOR_ATTACHMENT7", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CE7) } },
2919 { "COLOR_ATTACHMENT8", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CE8) } },
2920 { "COLOR_ATTACHMENT9", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CE9) } },
2921 { "COLOR_ATTACHMENT10", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CEA) } },
2922 { "COLOR_ATTACHMENT11", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CEB) } },
2923 { "COLOR_ATTACHMENT12", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CEC) } },
2924 { "COLOR_ATTACHMENT13", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CED) } },
2925 { "COLOR_ATTACHMENT14", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CEE) } },
2926 { "COLOR_ATTACHMENT15", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CEF) } },
2927 { "FRAMEBUFFER_INCOMPLETE_MULTISAMPLE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D56) } },
2928 { "MAX_SAMPLES", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D57) } },
2929 { "HALF_FLOAT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x140B) } },
2930 { "RG", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8227) } },
2931 { "RG_INTEGER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8228) } },
2932 { "R8", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8229) } },
2933 { "RG8", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x822B) } },
2934 { "R16F", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x822D) } },
2935 { "R32F", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x822E) } },
2936 { "RG16F", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x822F) } },
2937 { "RG32F", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8230) } },
2938 { "R8I", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8231) } },
2939 { "R8UI", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8232) } },
2940 { "R16I", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8233) } },
2941 { "R16UI", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8234) } },
2942 { "R32I", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8235) } },
2943 { "R32UI", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8236) } },
2944 { "RG8I", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8237) } },
2945 { "RG8UI", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8238) } },
2946 { "RG16I", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8239) } },
2947 { "RG16UI", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x823A) } },
2948 { "RG32I", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x823B) } },
2949 { "RG32UI", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x823C) } },
2950 { "VERTEX_ARRAY_BINDING", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x85B5) } },
2951 { "R8_SNORM", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8F94) } },
2952 { "RG8_SNORM", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8F95) } },
2953 { "RGB8_SNORM", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8F96) } },
2954 { "RGBA8_SNORM", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8F97) } },
2955 { "SIGNED_NORMALIZED", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8F9C) } },
2956 { "COPY_READ_BUFFER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8F36) } },
2957 { "COPY_WRITE_BUFFER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8F37) } },
2958 { "COPY_READ_BUFFER_BINDING", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8F36) } },
2959 { "COPY_WRITE_BUFFER_BINDING", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8F37) } },
2960 { "UNIFORM_BUFFER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A11) } },
2961 { "UNIFORM_BUFFER_BINDING", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A28) } },
2962 { "UNIFORM_BUFFER_START", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A29) } },
2963 { "UNIFORM_BUFFER_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A2A) } },
2964 { "MAX_VERTEX_UNIFORM_BLOCKS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A2B) } },
2965 { "MAX_FRAGMENT_UNIFORM_BLOCKS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A2D) } },
2966 { "MAX_COMBINED_UNIFORM_BLOCKS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A2E) } },
2967 { "MAX_UNIFORM_BUFFER_BINDINGS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A2F) } },
2968 { "MAX_UNIFORM_BLOCK_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A30) } },
2969 { "MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A31) } },
2970 { "MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A33) } },
2971 { "UNIFORM_BUFFER_OFFSET_ALIGNMENT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A34) } },
2972 { "ACTIVE_UNIFORM_BLOCKS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A36) } },
2973 { "UNIFORM_TYPE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A37) } },
2974 { "UNIFORM_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A38) } },
2975 { "UNIFORM_BLOCK_INDEX", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A3A) } },
2976 { "UNIFORM_OFFSET", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A3B) } },
2977 { "UNIFORM_ARRAY_STRIDE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A3C) } },
2978 { "UNIFORM_MATRIX_STRIDE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A3D) } },
2979 { "UNIFORM_IS_ROW_MAJOR", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A3E) } },
2980 { "UNIFORM_BLOCK_BINDING", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A3F) } },
2981 { "UNIFORM_BLOCK_DATA_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A40) } },
2982 { "UNIFORM_BLOCK_ACTIVE_UNIFORMS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A42) } },
2983 { "UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A43) } },
2984 { "UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A44) } },
2985 { "UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A46) } },
2986 { "INVALID_INDEX", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0xFFFFFFFF) } },
2987 { "MAX_VERTEX_OUTPUT_COMPONENTS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x9122) } },
2988 { "MAX_FRAGMENT_INPUT_COMPONENTS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x9125) } },
2989 { "MAX_SERVER_WAIT_TIMEOUT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x9111) } },
2990 { "OBJECT_TYPE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x9112) } },
2991 { "SYNC_CONDITION", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x9113) } },
2992 { "SYNC_STATUS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x9114) } },
2993 { "SYNC_FLAGS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x9115) } },
2994 { "SYNC_FENCE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x9116) } },
2995 { "SYNC_GPU_COMMANDS_COMPLETE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x9117) } },
2996 { "UNSIGNALED", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x9118) } },
2997 { "SIGNALED", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x9119) } },
2998 { "ALREADY_SIGNALED", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x911A) } },
2999 { "TIMEOUT_EXPIRED", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x911B) } },
3000 { "CONDITION_SATISFIED", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x911C) } },
3001 { "WAIT_FAILED", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x911D) } },
3002 { "SYNC_FLUSH_COMMANDS_BIT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x00000001) } },
3003 { "VERTEX_ATTRIB_ARRAY_DIVISOR", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x88FE) } },
3004 { "ANY_SAMPLES_PASSED", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C2F) } },
3005 { "ANY_SAMPLES_PASSED_CONSERVATIVE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D6A) } },
3006 { "SAMPLER_BINDING", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8919) } },
3007 { "RGB10_A2UI", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x906F) } },
3008 { "INT_2_10_10_10_REV", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D9F) } },
3009 { "TRANSFORM_FEEDBACK", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8E22) } },
3010 { "TRANSFORM_FEEDBACK_PAUSED", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8E23) } },
3011 { "TRANSFORM_FEEDBACK_ACTIVE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8E24) } },
3012 { "TRANSFORM_FEEDBACK_BINDING", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8E25) } },
3013 { "TEXTURE_IMMUTABLE_FORMAT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x912F) } },
3014 { "MAX_ELEMENT_INDEX", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D6B) } },
3015 { "TEXTURE_IMMUTABLE_LEVELS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x82DF) } },
3016 { "TIMEOUT_IGNORED", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(-1) } },
3017 { "MAX_CLIENT_WAIT_TIMEOUT_WEBGL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x9247) } },
3018#if ENABLE(WEBGL)
3019 { "DEPTH_BUFFER_BIT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x00000100) } },
3020#else
3021 { 0, 0, NoIntrinsic, { 0, 0 } },
3022#endif
3023#if ENABLE(WEBGL)
3024 { "STENCIL_BUFFER_BIT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x00000400) } },
3025#else
3026 { 0, 0, NoIntrinsic, { 0, 0 } },
3027#endif
3028#if ENABLE(WEBGL)
3029 { "COLOR_BUFFER_BIT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x00004000) } },
3030#else
3031 { 0, 0, NoIntrinsic, { 0, 0 } },
3032#endif
3033#if ENABLE(WEBGL)
3034 { "POINTS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0000) } },
3035#else
3036 { 0, 0, NoIntrinsic, { 0, 0 } },
3037#endif
3038#if ENABLE(WEBGL)
3039 { "LINES", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0001) } },
3040#else
3041 { 0, 0, NoIntrinsic, { 0, 0 } },
3042#endif
3043#if ENABLE(WEBGL)
3044 { "LINE_LOOP", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0002) } },
3045#else
3046 { 0, 0, NoIntrinsic, { 0, 0 } },
3047#endif
3048#if ENABLE(WEBGL)
3049 { "LINE_STRIP", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0003) } },
3050#else
3051 { 0, 0, NoIntrinsic, { 0, 0 } },
3052#endif
3053#if ENABLE(WEBGL)
3054 { "TRIANGLES", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0004) } },
3055#else
3056 { 0, 0, NoIntrinsic, { 0, 0 } },
3057#endif
3058#if ENABLE(WEBGL)
3059 { "TRIANGLE_STRIP", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0005) } },
3060#else
3061 { 0, 0, NoIntrinsic, { 0, 0 } },
3062#endif
3063#if ENABLE(WEBGL)
3064 { "TRIANGLE_FAN", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0006) } },
3065#else
3066 { 0, 0, NoIntrinsic, { 0, 0 } },
3067#endif
3068#if ENABLE(WEBGL)
3069 { "ZERO", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0) } },
3070#else
3071 { 0, 0, NoIntrinsic, { 0, 0 } },
3072#endif
3073#if ENABLE(WEBGL)
3074 { "ONE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(1) } },
3075#else
3076 { 0, 0, NoIntrinsic, { 0, 0 } },
3077#endif
3078#if ENABLE(WEBGL)
3079 { "SRC_COLOR", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0300) } },
3080#else
3081 { 0, 0, NoIntrinsic, { 0, 0 } },
3082#endif
3083#if ENABLE(WEBGL)
3084 { "ONE_MINUS_SRC_COLOR", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0301) } },
3085#else
3086 { 0, 0, NoIntrinsic, { 0, 0 } },
3087#endif
3088#if ENABLE(WEBGL)
3089 { "SRC_ALPHA", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0302) } },
3090#else
3091 { 0, 0, NoIntrinsic, { 0, 0 } },
3092#endif
3093#if ENABLE(WEBGL)
3094 { "ONE_MINUS_SRC_ALPHA", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0303) } },
3095#else
3096 { 0, 0, NoIntrinsic, { 0, 0 } },
3097#endif
3098#if ENABLE(WEBGL)
3099 { "DST_ALPHA", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0304) } },
3100#else
3101 { 0, 0, NoIntrinsic, { 0, 0 } },
3102#endif
3103#if ENABLE(WEBGL)
3104 { "ONE_MINUS_DST_ALPHA", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0305) } },
3105#else
3106 { 0, 0, NoIntrinsic, { 0, 0 } },
3107#endif
3108#if ENABLE(WEBGL)
3109 { "DST_COLOR", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0306) } },
3110#else
3111 { 0, 0, NoIntrinsic, { 0, 0 } },
3112#endif
3113#if ENABLE(WEBGL)
3114 { "ONE_MINUS_DST_COLOR", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0307) } },
3115#else
3116 { 0, 0, NoIntrinsic, { 0, 0 } },
3117#endif
3118#if ENABLE(WEBGL)
3119 { "SRC_ALPHA_SATURATE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0308) } },
3120#else
3121 { 0, 0, NoIntrinsic, { 0, 0 } },
3122#endif
3123#if ENABLE(WEBGL)
3124 { "FUNC_ADD", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8006) } },
3125#else
3126 { 0, 0, NoIntrinsic, { 0, 0 } },
3127#endif
3128#if ENABLE(WEBGL)
3129 { "BLEND_EQUATION", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8009) } },
3130#else
3131 { 0, 0, NoIntrinsic, { 0, 0 } },
3132#endif
3133#if ENABLE(WEBGL)
3134 { "BLEND_EQUATION_RGB", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8009) } },
3135#else
3136 { 0, 0, NoIntrinsic, { 0, 0 } },
3137#endif
3138#if ENABLE(WEBGL)
3139 { "BLEND_EQUATION_ALPHA", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x883D) } },
3140#else
3141 { 0, 0, NoIntrinsic, { 0, 0 } },
3142#endif
3143#if ENABLE(WEBGL)
3144 { "FUNC_SUBTRACT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x800A) } },
3145#else
3146 { 0, 0, NoIntrinsic, { 0, 0 } },
3147#endif
3148#if ENABLE(WEBGL)
3149 { "FUNC_REVERSE_SUBTRACT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x800B) } },
3150#else
3151 { 0, 0, NoIntrinsic, { 0, 0 } },
3152#endif
3153#if ENABLE(WEBGL)
3154 { "BLEND_DST_RGB", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x80C8) } },
3155#else
3156 { 0, 0, NoIntrinsic, { 0, 0 } },
3157#endif
3158#if ENABLE(WEBGL)
3159 { "BLEND_SRC_RGB", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x80C9) } },
3160#else
3161 { 0, 0, NoIntrinsic, { 0, 0 } },
3162#endif
3163#if ENABLE(WEBGL)
3164 { "BLEND_DST_ALPHA", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x80CA) } },
3165#else
3166 { 0, 0, NoIntrinsic, { 0, 0 } },
3167#endif
3168#if ENABLE(WEBGL)
3169 { "BLEND_SRC_ALPHA", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x80CB) } },
3170#else
3171 { 0, 0, NoIntrinsic, { 0, 0 } },
3172#endif
3173#if ENABLE(WEBGL)
3174 { "CONSTANT_COLOR", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8001) } },
3175#else
3176 { 0, 0, NoIntrinsic, { 0, 0 } },
3177#endif
3178#if ENABLE(WEBGL)
3179 { "ONE_MINUS_CONSTANT_COLOR", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8002) } },
3180#else
3181 { 0, 0, NoIntrinsic, { 0, 0 } },
3182#endif
3183#if ENABLE(WEBGL)
3184 { "CONSTANT_ALPHA", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8003) } },
3185#else
3186 { 0, 0, NoIntrinsic, { 0, 0 } },
3187#endif
3188#if ENABLE(WEBGL)
3189 { "ONE_MINUS_CONSTANT_ALPHA", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8004) } },
3190#else
3191 { 0, 0, NoIntrinsic, { 0, 0 } },
3192#endif
3193#if ENABLE(WEBGL)
3194 { "BLEND_COLOR", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8005) } },
3195#else
3196 { 0, 0, NoIntrinsic, { 0, 0 } },
3197#endif
3198#if ENABLE(WEBGL)
3199 { "ARRAY_BUFFER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8892) } },
3200#else
3201 { 0, 0, NoIntrinsic, { 0, 0 } },
3202#endif
3203#if ENABLE(WEBGL)
3204 { "ELEMENT_ARRAY_BUFFER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8893) } },
3205#else
3206 { 0, 0, NoIntrinsic, { 0, 0 } },
3207#endif
3208#if ENABLE(WEBGL)
3209 { "ARRAY_BUFFER_BINDING", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8894) } },
3210#else
3211 { 0, 0, NoIntrinsic, { 0, 0 } },
3212#endif
3213#if ENABLE(WEBGL)
3214 { "ELEMENT_ARRAY_BUFFER_BINDING", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8895) } },
3215#else
3216 { 0, 0, NoIntrinsic, { 0, 0 } },
3217#endif
3218#if ENABLE(WEBGL)
3219 { "STREAM_DRAW", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x88E0) } },
3220#else
3221 { 0, 0, NoIntrinsic, { 0, 0 } },
3222#endif
3223#if ENABLE(WEBGL)
3224 { "STATIC_DRAW", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x88E4) } },
3225#else
3226 { 0, 0, NoIntrinsic, { 0, 0 } },
3227#endif
3228#if ENABLE(WEBGL)
3229 { "DYNAMIC_DRAW", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x88E8) } },
3230#else
3231 { 0, 0, NoIntrinsic, { 0, 0 } },
3232#endif
3233#if ENABLE(WEBGL)
3234 { "BUFFER_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8764) } },
3235#else
3236 { 0, 0, NoIntrinsic, { 0, 0 } },
3237#endif
3238#if ENABLE(WEBGL)
3239 { "BUFFER_USAGE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8765) } },
3240#else
3241 { 0, 0, NoIntrinsic, { 0, 0 } },
3242#endif
3243#if ENABLE(WEBGL)
3244 { "CURRENT_VERTEX_ATTRIB", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8626) } },
3245#else
3246 { 0, 0, NoIntrinsic, { 0, 0 } },
3247#endif
3248#if ENABLE(WEBGL)
3249 { "FRONT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0404) } },
3250#else
3251 { 0, 0, NoIntrinsic, { 0, 0 } },
3252#endif
3253#if ENABLE(WEBGL)
3254 { "BACK", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0405) } },
3255#else
3256 { 0, 0, NoIntrinsic, { 0, 0 } },
3257#endif
3258#if ENABLE(WEBGL)
3259 { "FRONT_AND_BACK", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0408) } },
3260#else
3261 { 0, 0, NoIntrinsic, { 0, 0 } },
3262#endif
3263#if ENABLE(WEBGL)
3264 { "TEXTURE_2D", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0DE1) } },
3265#else
3266 { 0, 0, NoIntrinsic, { 0, 0 } },
3267#endif
3268#if ENABLE(WEBGL)
3269 { "CULL_FACE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0B44) } },
3270#else
3271 { 0, 0, NoIntrinsic, { 0, 0 } },
3272#endif
3273#if ENABLE(WEBGL)
3274 { "BLEND", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0BE2) } },
3275#else
3276 { 0, 0, NoIntrinsic, { 0, 0 } },
3277#endif
3278#if ENABLE(WEBGL)
3279 { "DITHER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0BD0) } },
3280#else
3281 { 0, 0, NoIntrinsic, { 0, 0 } },
3282#endif
3283#if ENABLE(WEBGL)
3284 { "STENCIL_TEST", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0B90) } },
3285#else
3286 { 0, 0, NoIntrinsic, { 0, 0 } },
3287#endif
3288#if ENABLE(WEBGL)
3289 { "DEPTH_TEST", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0B71) } },
3290#else
3291 { 0, 0, NoIntrinsic, { 0, 0 } },
3292#endif
3293#if ENABLE(WEBGL)
3294 { "SCISSOR_TEST", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0C11) } },
3295#else
3296 { 0, 0, NoIntrinsic, { 0, 0 } },
3297#endif
3298#if ENABLE(WEBGL)
3299 { "POLYGON_OFFSET_FILL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8037) } },
3300#else
3301 { 0, 0, NoIntrinsic, { 0, 0 } },
3302#endif
3303#if ENABLE(WEBGL)
3304 { "SAMPLE_ALPHA_TO_COVERAGE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x809E) } },
3305#else
3306 { 0, 0, NoIntrinsic, { 0, 0 } },
3307#endif
3308#if ENABLE(WEBGL)
3309 { "SAMPLE_COVERAGE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x80A0) } },
3310#else
3311 { 0, 0, NoIntrinsic, { 0, 0 } },
3312#endif
3313#if ENABLE(WEBGL)
3314 { "NO_ERROR", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0) } },
3315#else
3316 { 0, 0, NoIntrinsic, { 0, 0 } },
3317#endif
3318#if ENABLE(WEBGL)
3319 { "INVALID_ENUM", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0500) } },
3320#else
3321 { 0, 0, NoIntrinsic, { 0, 0 } },
3322#endif
3323#if ENABLE(WEBGL)
3324 { "INVALID_VALUE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0501) } },
3325#else
3326 { 0, 0, NoIntrinsic, { 0, 0 } },
3327#endif
3328#if ENABLE(WEBGL)
3329 { "INVALID_OPERATION", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0502) } },
3330#else
3331 { 0, 0, NoIntrinsic, { 0, 0 } },
3332#endif
3333#if ENABLE(WEBGL)
3334 { "OUT_OF_MEMORY", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0505) } },
3335#else
3336 { 0, 0, NoIntrinsic, { 0, 0 } },
3337#endif
3338#if ENABLE(WEBGL)
3339 { "CW", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0900) } },
3340#else
3341 { 0, 0, NoIntrinsic, { 0, 0 } },
3342#endif
3343#if ENABLE(WEBGL)
3344 { "CCW", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0901) } },
3345#else
3346 { 0, 0, NoIntrinsic, { 0, 0 } },
3347#endif
3348#if ENABLE(WEBGL)
3349 { "LINE_WIDTH", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0B21) } },
3350#else
3351 { 0, 0, NoIntrinsic, { 0, 0 } },
3352#endif
3353#if ENABLE(WEBGL)
3354 { "ALIASED_POINT_SIZE_RANGE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x846D) } },
3355#else
3356 { 0, 0, NoIntrinsic, { 0, 0 } },
3357#endif
3358#if ENABLE(WEBGL)
3359 { "ALIASED_LINE_WIDTH_RANGE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x846E) } },
3360#else
3361 { 0, 0, NoIntrinsic, { 0, 0 } },
3362#endif
3363#if ENABLE(WEBGL)
3364 { "CULL_FACE_MODE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0B45) } },
3365#else
3366 { 0, 0, NoIntrinsic, { 0, 0 } },
3367#endif
3368#if ENABLE(WEBGL)
3369 { "FRONT_FACE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0B46) } },
3370#else
3371 { 0, 0, NoIntrinsic, { 0, 0 } },
3372#endif
3373#if ENABLE(WEBGL)
3374 { "DEPTH_RANGE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0B70) } },
3375#else
3376 { 0, 0, NoIntrinsic, { 0, 0 } },
3377#endif
3378#if ENABLE(WEBGL)
3379 { "DEPTH_WRITEMASK", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0B72) } },
3380#else
3381 { 0, 0, NoIntrinsic, { 0, 0 } },
3382#endif
3383#if ENABLE(WEBGL)
3384 { "DEPTH_CLEAR_VALUE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0B73) } },
3385#else
3386 { 0, 0, NoIntrinsic, { 0, 0 } },
3387#endif
3388#if ENABLE(WEBGL)
3389 { "DEPTH_FUNC", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0B74) } },
3390#else
3391 { 0, 0, NoIntrinsic, { 0, 0 } },
3392#endif
3393#if ENABLE(WEBGL)
3394 { "STENCIL_CLEAR_VALUE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0B91) } },
3395#else
3396 { 0, 0, NoIntrinsic, { 0, 0 } },
3397#endif
3398#if ENABLE(WEBGL)
3399 { "STENCIL_FUNC", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0B92) } },
3400#else
3401 { 0, 0, NoIntrinsic, { 0, 0 } },
3402#endif
3403#if ENABLE(WEBGL)
3404 { "STENCIL_FAIL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0B94) } },
3405#else
3406 { 0, 0, NoIntrinsic, { 0, 0 } },
3407#endif
3408#if ENABLE(WEBGL)
3409 { "STENCIL_PASS_DEPTH_FAIL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0B95) } },
3410#else
3411 { 0, 0, NoIntrinsic, { 0, 0 } },
3412#endif
3413#if ENABLE(WEBGL)
3414 { "STENCIL_PASS_DEPTH_PASS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0B96) } },
3415#else
3416 { 0, 0, NoIntrinsic, { 0, 0 } },
3417#endif
3418#if ENABLE(WEBGL)
3419 { "STENCIL_REF", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0B97) } },
3420#else
3421 { 0, 0, NoIntrinsic, { 0, 0 } },
3422#endif
3423#if ENABLE(WEBGL)
3424 { "STENCIL_VALUE_MASK", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0B93) } },
3425#else
3426 { 0, 0, NoIntrinsic, { 0, 0 } },
3427#endif
3428#if ENABLE(WEBGL)
3429 { "STENCIL_WRITEMASK", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0B98) } },
3430#else
3431 { 0, 0, NoIntrinsic, { 0, 0 } },
3432#endif
3433#if ENABLE(WEBGL)
3434 { "STENCIL_BACK_FUNC", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8800) } },
3435#else
3436 { 0, 0, NoIntrinsic, { 0, 0 } },
3437#endif
3438#if ENABLE(WEBGL)
3439 { "STENCIL_BACK_FAIL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8801) } },
3440#else
3441 { 0, 0, NoIntrinsic, { 0, 0 } },
3442#endif
3443#if ENABLE(WEBGL)
3444 { "STENCIL_BACK_PASS_DEPTH_FAIL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8802) } },
3445#else
3446 { 0, 0, NoIntrinsic, { 0, 0 } },
3447#endif
3448#if ENABLE(WEBGL)
3449 { "STENCIL_BACK_PASS_DEPTH_PASS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8803) } },
3450#else
3451 { 0, 0, NoIntrinsic, { 0, 0 } },
3452#endif
3453#if ENABLE(WEBGL)
3454 { "STENCIL_BACK_REF", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CA3) } },
3455#else
3456 { 0, 0, NoIntrinsic, { 0, 0 } },
3457#endif
3458#if ENABLE(WEBGL)
3459 { "STENCIL_BACK_VALUE_MASK", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CA4) } },
3460#else
3461 { 0, 0, NoIntrinsic, { 0, 0 } },
3462#endif
3463#if ENABLE(WEBGL)
3464 { "STENCIL_BACK_WRITEMASK", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CA5) } },
3465#else
3466 { 0, 0, NoIntrinsic, { 0, 0 } },
3467#endif
3468#if ENABLE(WEBGL)
3469 { "VIEWPORT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0BA2) } },
3470#else
3471 { 0, 0, NoIntrinsic, { 0, 0 } },
3472#endif
3473#if ENABLE(WEBGL)
3474 { "SCISSOR_BOX", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0C10) } },
3475#else
3476 { 0, 0, NoIntrinsic, { 0, 0 } },
3477#endif
3478#if ENABLE(WEBGL)
3479 { "COLOR_CLEAR_VALUE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0C22) } },
3480#else
3481 { 0, 0, NoIntrinsic, { 0, 0 } },
3482#endif
3483#if ENABLE(WEBGL)
3484 { "COLOR_WRITEMASK", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0C23) } },
3485#else
3486 { 0, 0, NoIntrinsic, { 0, 0 } },
3487#endif
3488#if ENABLE(WEBGL)
3489 { "UNPACK_ALIGNMENT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0CF5) } },
3490#else
3491 { 0, 0, NoIntrinsic, { 0, 0 } },
3492#endif
3493#if ENABLE(WEBGL)
3494 { "PACK_ALIGNMENT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0D05) } },
3495#else
3496 { 0, 0, NoIntrinsic, { 0, 0 } },
3497#endif
3498#if ENABLE(WEBGL)
3499 { "MAX_TEXTURE_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0D33) } },
3500#else
3501 { 0, 0, NoIntrinsic, { 0, 0 } },
3502#endif
3503#if ENABLE(WEBGL)
3504 { "MAX_VIEWPORT_DIMS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0D3A) } },
3505#else
3506 { 0, 0, NoIntrinsic, { 0, 0 } },
3507#endif
3508#if ENABLE(WEBGL)
3509 { "SUBPIXEL_BITS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0D50) } },
3510#else
3511 { 0, 0, NoIntrinsic, { 0, 0 } },
3512#endif
3513#if ENABLE(WEBGL)
3514 { "RED_BITS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0D52) } },
3515#else
3516 { 0, 0, NoIntrinsic, { 0, 0 } },
3517#endif
3518#if ENABLE(WEBGL)
3519 { "GREEN_BITS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0D53) } },
3520#else
3521 { 0, 0, NoIntrinsic, { 0, 0 } },
3522#endif
3523#if ENABLE(WEBGL)
3524 { "BLUE_BITS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0D54) } },
3525#else
3526 { 0, 0, NoIntrinsic, { 0, 0 } },
3527#endif
3528#if ENABLE(WEBGL)
3529 { "ALPHA_BITS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0D55) } },
3530#else
3531 { 0, 0, NoIntrinsic, { 0, 0 } },
3532#endif
3533#if ENABLE(WEBGL)
3534 { "DEPTH_BITS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0D56) } },
3535#else
3536 { 0, 0, NoIntrinsic, { 0, 0 } },
3537#endif
3538#if ENABLE(WEBGL)
3539 { "STENCIL_BITS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0D57) } },
3540#else
3541 { 0, 0, NoIntrinsic, { 0, 0 } },
3542#endif
3543#if ENABLE(WEBGL)
3544 { "POLYGON_OFFSET_UNITS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x2A00) } },
3545#else
3546 { 0, 0, NoIntrinsic, { 0, 0 } },
3547#endif
3548#if ENABLE(WEBGL)
3549 { "POLYGON_OFFSET_FACTOR", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8038) } },
3550#else
3551 { 0, 0, NoIntrinsic, { 0, 0 } },
3552#endif
3553#if ENABLE(WEBGL)
3554 { "TEXTURE_BINDING_2D", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8069) } },
3555#else
3556 { 0, 0, NoIntrinsic, { 0, 0 } },
3557#endif
3558#if ENABLE(WEBGL)
3559 { "SAMPLE_BUFFERS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x80A8) } },
3560#else
3561 { 0, 0, NoIntrinsic, { 0, 0 } },
3562#endif
3563#if ENABLE(WEBGL)
3564 { "SAMPLES", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x80A9) } },
3565#else
3566 { 0, 0, NoIntrinsic, { 0, 0 } },
3567#endif
3568#if ENABLE(WEBGL)
3569 { "SAMPLE_COVERAGE_VALUE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x80AA) } },
3570#else
3571 { 0, 0, NoIntrinsic, { 0, 0 } },
3572#endif
3573#if ENABLE(WEBGL)
3574 { "SAMPLE_COVERAGE_INVERT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x80AB) } },
3575#else
3576 { 0, 0, NoIntrinsic, { 0, 0 } },
3577#endif
3578#if ENABLE(WEBGL)
3579 { "COMPRESSED_TEXTURE_FORMATS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x86A3) } },
3580#else
3581 { 0, 0, NoIntrinsic, { 0, 0 } },
3582#endif
3583#if ENABLE(WEBGL)
3584 { "DONT_CARE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1100) } },
3585#else
3586 { 0, 0, NoIntrinsic, { 0, 0 } },
3587#endif
3588#if ENABLE(WEBGL)
3589 { "FASTEST", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1101) } },
3590#else
3591 { 0, 0, NoIntrinsic, { 0, 0 } },
3592#endif
3593#if ENABLE(WEBGL)
3594 { "NICEST", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1102) } },
3595#else
3596 { 0, 0, NoIntrinsic, { 0, 0 } },
3597#endif
3598#if ENABLE(WEBGL)
3599 { "GENERATE_MIPMAP_HINT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8192) } },
3600#else
3601 { 0, 0, NoIntrinsic, { 0, 0 } },
3602#endif
3603#if ENABLE(WEBGL)
3604 { "BYTE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1400) } },
3605#else
3606 { 0, 0, NoIntrinsic, { 0, 0 } },
3607#endif
3608#if ENABLE(WEBGL)
3609 { "UNSIGNED_BYTE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1401) } },
3610#else
3611 { 0, 0, NoIntrinsic, { 0, 0 } },
3612#endif
3613#if ENABLE(WEBGL)
3614 { "SHORT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1402) } },
3615#else
3616 { 0, 0, NoIntrinsic, { 0, 0 } },
3617#endif
3618#if ENABLE(WEBGL)
3619 { "UNSIGNED_SHORT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1403) } },
3620#else
3621 { 0, 0, NoIntrinsic, { 0, 0 } },
3622#endif
3623#if ENABLE(WEBGL)
3624 { "INT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1404) } },
3625#else
3626 { 0, 0, NoIntrinsic, { 0, 0 } },
3627#endif
3628#if ENABLE(WEBGL)
3629 { "UNSIGNED_INT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1405) } },
3630#else
3631 { 0, 0, NoIntrinsic, { 0, 0 } },
3632#endif
3633#if ENABLE(WEBGL)
3634 { "FLOAT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1406) } },
3635#else
3636 { 0, 0, NoIntrinsic, { 0, 0 } },
3637#endif
3638#if ENABLE(WEBGL)
3639 { "DEPTH_COMPONENT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1902) } },
3640#else
3641 { 0, 0, NoIntrinsic, { 0, 0 } },
3642#endif
3643#if ENABLE(WEBGL)
3644 { "ALPHA", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1906) } },
3645#else
3646 { 0, 0, NoIntrinsic, { 0, 0 } },
3647#endif
3648#if ENABLE(WEBGL)
3649 { "RGB", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1907) } },
3650#else
3651 { 0, 0, NoIntrinsic, { 0, 0 } },
3652#endif
3653#if ENABLE(WEBGL)
3654 { "RGBA", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1908) } },
3655#else
3656 { 0, 0, NoIntrinsic, { 0, 0 } },
3657#endif
3658#if ENABLE(WEBGL)
3659 { "LUMINANCE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1909) } },
3660#else
3661 { 0, 0, NoIntrinsic, { 0, 0 } },
3662#endif
3663#if ENABLE(WEBGL)
3664 { "LUMINANCE_ALPHA", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x190A) } },
3665#else
3666 { 0, 0, NoIntrinsic, { 0, 0 } },
3667#endif
3668#if ENABLE(WEBGL)
3669 { "UNSIGNED_SHORT_4_4_4_4", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8033) } },
3670#else
3671 { 0, 0, NoIntrinsic, { 0, 0 } },
3672#endif
3673#if ENABLE(WEBGL)
3674 { "UNSIGNED_SHORT_5_5_5_1", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8034) } },
3675#else
3676 { 0, 0, NoIntrinsic, { 0, 0 } },
3677#endif
3678#if ENABLE(WEBGL)
3679 { "UNSIGNED_SHORT_5_6_5", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8363) } },
3680#else
3681 { 0, 0, NoIntrinsic, { 0, 0 } },
3682#endif
3683#if ENABLE(WEBGL)
3684 { "FRAGMENT_SHADER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B30) } },
3685#else
3686 { 0, 0, NoIntrinsic, { 0, 0 } },
3687#endif
3688#if ENABLE(WEBGL)
3689 { "VERTEX_SHADER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B31) } },
3690#else
3691 { 0, 0, NoIntrinsic, { 0, 0 } },
3692#endif
3693#if ENABLE(WEBGL)
3694 { "MAX_VERTEX_ATTRIBS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8869) } },
3695#else
3696 { 0, 0, NoIntrinsic, { 0, 0 } },
3697#endif
3698#if ENABLE(WEBGL)
3699 { "MAX_VERTEX_UNIFORM_VECTORS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DFB) } },
3700#else
3701 { 0, 0, NoIntrinsic, { 0, 0 } },
3702#endif
3703#if ENABLE(WEBGL)
3704 { "MAX_VARYING_VECTORS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DFC) } },
3705#else
3706 { 0, 0, NoIntrinsic, { 0, 0 } },
3707#endif
3708#if ENABLE(WEBGL)
3709 { "MAX_COMBINED_TEXTURE_IMAGE_UNITS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B4D) } },
3710#else
3711 { 0, 0, NoIntrinsic, { 0, 0 } },
3712#endif
3713#if ENABLE(WEBGL)
3714 { "MAX_VERTEX_TEXTURE_IMAGE_UNITS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B4C) } },
3715#else
3716 { 0, 0, NoIntrinsic, { 0, 0 } },
3717#endif
3718#if ENABLE(WEBGL)
3719 { "MAX_TEXTURE_IMAGE_UNITS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8872) } },
3720#else
3721 { 0, 0, NoIntrinsic, { 0, 0 } },
3722#endif
3723#if ENABLE(WEBGL)
3724 { "MAX_FRAGMENT_UNIFORM_VECTORS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DFD) } },
3725#else
3726 { 0, 0, NoIntrinsic, { 0, 0 } },
3727#endif
3728#if ENABLE(WEBGL)
3729 { "SHADER_TYPE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B4F) } },
3730#else
3731 { 0, 0, NoIntrinsic, { 0, 0 } },
3732#endif
3733#if ENABLE(WEBGL)
3734 { "DELETE_STATUS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B80) } },
3735#else
3736 { 0, 0, NoIntrinsic, { 0, 0 } },
3737#endif
3738#if ENABLE(WEBGL)
3739 { "LINK_STATUS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B82) } },
3740#else
3741 { 0, 0, NoIntrinsic, { 0, 0 } },
3742#endif
3743#if ENABLE(WEBGL)
3744 { "VALIDATE_STATUS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B83) } },
3745#else
3746 { 0, 0, NoIntrinsic, { 0, 0 } },
3747#endif
3748#if ENABLE(WEBGL)
3749 { "ATTACHED_SHADERS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B85) } },
3750#else
3751 { 0, 0, NoIntrinsic, { 0, 0 } },
3752#endif
3753#if ENABLE(WEBGL)
3754 { "ACTIVE_UNIFORMS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B86) } },
3755#else
3756 { 0, 0, NoIntrinsic, { 0, 0 } },
3757#endif
3758#if ENABLE(WEBGL)
3759 { "ACTIVE_ATTRIBUTES", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B89) } },
3760#else
3761 { 0, 0, NoIntrinsic, { 0, 0 } },
3762#endif
3763#if ENABLE(WEBGL)
3764 { "SHADING_LANGUAGE_VERSION", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B8C) } },
3765#else
3766 { 0, 0, NoIntrinsic, { 0, 0 } },
3767#endif
3768#if ENABLE(WEBGL)
3769 { "CURRENT_PROGRAM", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B8D) } },
3770#else
3771 { 0, 0, NoIntrinsic, { 0, 0 } },
3772#endif
3773#if ENABLE(WEBGL)
3774 { "NEVER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0200) } },
3775#else
3776 { 0, 0, NoIntrinsic, { 0, 0 } },
3777#endif
3778#if ENABLE(WEBGL)
3779 { "LESS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0201) } },
3780#else
3781 { 0, 0, NoIntrinsic, { 0, 0 } },
3782#endif
3783#if ENABLE(WEBGL)
3784 { "EQUAL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0202) } },
3785#else
3786 { 0, 0, NoIntrinsic, { 0, 0 } },
3787#endif
3788#if ENABLE(WEBGL)
3789 { "LEQUAL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0203) } },
3790#else
3791 { 0, 0, NoIntrinsic, { 0, 0 } },
3792#endif
3793#if ENABLE(WEBGL)
3794 { "GREATER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0204) } },
3795#else
3796 { 0, 0, NoIntrinsic, { 0, 0 } },
3797#endif
3798#if ENABLE(WEBGL)
3799 { "NOTEQUAL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0205) } },
3800#else
3801 { 0, 0, NoIntrinsic, { 0, 0 } },
3802#endif
3803#if ENABLE(WEBGL)
3804 { "GEQUAL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0206) } },
3805#else
3806 { 0, 0, NoIntrinsic, { 0, 0 } },
3807#endif
3808#if ENABLE(WEBGL)
3809 { "ALWAYS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0207) } },
3810#else
3811 { 0, 0, NoIntrinsic, { 0, 0 } },
3812#endif
3813#if ENABLE(WEBGL)
3814 { "KEEP", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1E00) } },
3815#else
3816 { 0, 0, NoIntrinsic, { 0, 0 } },
3817#endif
3818#if ENABLE(WEBGL)
3819 { "REPLACE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1E01) } },
3820#else
3821 { 0, 0, NoIntrinsic, { 0, 0 } },
3822#endif
3823#if ENABLE(WEBGL)
3824 { "INCR", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1E02) } },
3825#else
3826 { 0, 0, NoIntrinsic, { 0, 0 } },
3827#endif
3828#if ENABLE(WEBGL)
3829 { "DECR", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1E03) } },
3830#else
3831 { 0, 0, NoIntrinsic, { 0, 0 } },
3832#endif
3833#if ENABLE(WEBGL)
3834 { "INVERT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x150A) } },
3835#else
3836 { 0, 0, NoIntrinsic, { 0, 0 } },
3837#endif
3838#if ENABLE(WEBGL)
3839 { "INCR_WRAP", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8507) } },
3840#else
3841 { 0, 0, NoIntrinsic, { 0, 0 } },
3842#endif
3843#if ENABLE(WEBGL)
3844 { "DECR_WRAP", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8508) } },
3845#else
3846 { 0, 0, NoIntrinsic, { 0, 0 } },
3847#endif
3848#if ENABLE(WEBGL)
3849 { "VENDOR", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1F00) } },
3850#else
3851 { 0, 0, NoIntrinsic, { 0, 0 } },
3852#endif
3853#if ENABLE(WEBGL)
3854 { "RENDERER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1F01) } },
3855#else
3856 { 0, 0, NoIntrinsic, { 0, 0 } },
3857#endif
3858#if ENABLE(WEBGL)
3859 { "VERSION", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1F02) } },
3860#else
3861 { 0, 0, NoIntrinsic, { 0, 0 } },
3862#endif
3863#if ENABLE(WEBGL)
3864 { "NEAREST", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x2600) } },
3865#else
3866 { 0, 0, NoIntrinsic, { 0, 0 } },
3867#endif
3868#if ENABLE(WEBGL)
3869 { "LINEAR", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x2601) } },
3870#else
3871 { 0, 0, NoIntrinsic, { 0, 0 } },
3872#endif
3873#if ENABLE(WEBGL)
3874 { "NEAREST_MIPMAP_NEAREST", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x2700) } },
3875#else
3876 { 0, 0, NoIntrinsic, { 0, 0 } },
3877#endif
3878#if ENABLE(WEBGL)
3879 { "LINEAR_MIPMAP_NEAREST", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x2701) } },
3880#else
3881 { 0, 0, NoIntrinsic, { 0, 0 } },
3882#endif
3883#if ENABLE(WEBGL)
3884 { "NEAREST_MIPMAP_LINEAR", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x2702) } },
3885#else
3886 { 0, 0, NoIntrinsic, { 0, 0 } },
3887#endif
3888#if ENABLE(WEBGL)
3889 { "LINEAR_MIPMAP_LINEAR", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x2703) } },
3890#else
3891 { 0, 0, NoIntrinsic, { 0, 0 } },
3892#endif
3893#if ENABLE(WEBGL)
3894 { "TEXTURE_MAG_FILTER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x2800) } },
3895#else
3896 { 0, 0, NoIntrinsic, { 0, 0 } },
3897#endif
3898#if ENABLE(WEBGL)
3899 { "TEXTURE_MIN_FILTER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x2801) } },
3900#else
3901 { 0, 0, NoIntrinsic, { 0, 0 } },
3902#endif
3903#if ENABLE(WEBGL)
3904 { "TEXTURE_WRAP_S", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x2802) } },
3905#else
3906 { 0, 0, NoIntrinsic, { 0, 0 } },
3907#endif
3908#if ENABLE(WEBGL)
3909 { "TEXTURE_WRAP_T", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x2803) } },
3910#else
3911 { 0, 0, NoIntrinsic, { 0, 0 } },
3912#endif
3913#if ENABLE(WEBGL)
3914 { "TEXTURE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1702) } },
3915#else
3916 { 0, 0, NoIntrinsic, { 0, 0 } },
3917#endif
3918#if ENABLE(WEBGL)
3919 { "TEXTURE_CUBE_MAP", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8513) } },
3920#else
3921 { 0, 0, NoIntrinsic, { 0, 0 } },
3922#endif
3923#if ENABLE(WEBGL)
3924 { "TEXTURE_BINDING_CUBE_MAP", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8514) } },
3925#else
3926 { 0, 0, NoIntrinsic, { 0, 0 } },
3927#endif
3928#if ENABLE(WEBGL)
3929 { "TEXTURE_CUBE_MAP_POSITIVE_X", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8515) } },
3930#else
3931 { 0, 0, NoIntrinsic, { 0, 0 } },
3932#endif
3933#if ENABLE(WEBGL)
3934 { "TEXTURE_CUBE_MAP_NEGATIVE_X", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8516) } },
3935#else
3936 { 0, 0, NoIntrinsic, { 0, 0 } },
3937#endif
3938#if ENABLE(WEBGL)
3939 { "TEXTURE_CUBE_MAP_POSITIVE_Y", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8517) } },
3940#else
3941 { 0, 0, NoIntrinsic, { 0, 0 } },
3942#endif
3943#if ENABLE(WEBGL)
3944 { "TEXTURE_CUBE_MAP_NEGATIVE_Y", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8518) } },
3945#else
3946 { 0, 0, NoIntrinsic, { 0, 0 } },
3947#endif
3948#if ENABLE(WEBGL)
3949 { "TEXTURE_CUBE_MAP_POSITIVE_Z", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8519) } },
3950#else
3951 { 0, 0, NoIntrinsic, { 0, 0 } },
3952#endif
3953#if ENABLE(WEBGL)
3954 { "TEXTURE_CUBE_MAP_NEGATIVE_Z", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x851A) } },
3955#else
3956 { 0, 0, NoIntrinsic, { 0, 0 } },
3957#endif
3958#if ENABLE(WEBGL)
3959 { "MAX_CUBE_MAP_TEXTURE_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x851C) } },
3960#else
3961 { 0, 0, NoIntrinsic, { 0, 0 } },
3962#endif
3963#if ENABLE(WEBGL)
3964 { "TEXTURE0", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84C0) } },
3965#else
3966 { 0, 0, NoIntrinsic, { 0, 0 } },
3967#endif
3968#if ENABLE(WEBGL)
3969 { "TEXTURE1", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84C1) } },
3970#else
3971 { 0, 0, NoIntrinsic, { 0, 0 } },
3972#endif
3973#if ENABLE(WEBGL)
3974 { "TEXTURE2", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84C2) } },
3975#else
3976 { 0, 0, NoIntrinsic, { 0, 0 } },
3977#endif
3978#if ENABLE(WEBGL)
3979 { "TEXTURE3", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84C3) } },
3980#else
3981 { 0, 0, NoIntrinsic, { 0, 0 } },
3982#endif
3983#if ENABLE(WEBGL)
3984 { "TEXTURE4", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84C4) } },
3985#else
3986 { 0, 0, NoIntrinsic, { 0, 0 } },
3987#endif
3988#if ENABLE(WEBGL)
3989 { "TEXTURE5", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84C5) } },
3990#else
3991 { 0, 0, NoIntrinsic, { 0, 0 } },
3992#endif
3993#if ENABLE(WEBGL)
3994 { "TEXTURE6", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84C6) } },
3995#else
3996 { 0, 0, NoIntrinsic, { 0, 0 } },
3997#endif
3998#if ENABLE(WEBGL)
3999 { "TEXTURE7", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84C7) } },
4000#else
4001 { 0, 0, NoIntrinsic, { 0, 0 } },
4002#endif
4003#if ENABLE(WEBGL)
4004 { "TEXTURE8", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84C8) } },
4005#else
4006 { 0, 0, NoIntrinsic, { 0, 0 } },
4007#endif
4008#if ENABLE(WEBGL)
4009 { "TEXTURE9", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84C9) } },
4010#else
4011 { 0, 0, NoIntrinsic, { 0, 0 } },
4012#endif
4013#if ENABLE(WEBGL)
4014 { "TEXTURE10", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84CA) } },
4015#else
4016 { 0, 0, NoIntrinsic, { 0, 0 } },
4017#endif
4018#if ENABLE(WEBGL)
4019 { "TEXTURE11", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84CB) } },
4020#else
4021 { 0, 0, NoIntrinsic, { 0, 0 } },
4022#endif
4023#if ENABLE(WEBGL)
4024 { "TEXTURE12", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84CC) } },
4025#else
4026 { 0, 0, NoIntrinsic, { 0, 0 } },
4027#endif
4028#if ENABLE(WEBGL)
4029 { "TEXTURE13", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84CD) } },
4030#else
4031 { 0, 0, NoIntrinsic, { 0, 0 } },
4032#endif
4033#if ENABLE(WEBGL)
4034 { "TEXTURE14", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84CE) } },
4035#else
4036 { 0, 0, NoIntrinsic, { 0, 0 } },
4037#endif
4038#if ENABLE(WEBGL)
4039 { "TEXTURE15", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84CF) } },
4040#else
4041 { 0, 0, NoIntrinsic, { 0, 0 } },
4042#endif
4043#if ENABLE(WEBGL)
4044 { "TEXTURE16", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84D0) } },
4045#else
4046 { 0, 0, NoIntrinsic, { 0, 0 } },
4047#endif
4048#if ENABLE(WEBGL)
4049 { "TEXTURE17", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84D1) } },
4050#else
4051 { 0, 0, NoIntrinsic, { 0, 0 } },
4052#endif
4053#if ENABLE(WEBGL)
4054 { "TEXTURE18", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84D2) } },
4055#else
4056 { 0, 0, NoIntrinsic, { 0, 0 } },
4057#endif
4058#if ENABLE(WEBGL)
4059 { "TEXTURE19", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84D3) } },
4060#else
4061 { 0, 0, NoIntrinsic, { 0, 0 } },
4062#endif
4063#if ENABLE(WEBGL)
4064 { "TEXTURE20", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84D4) } },
4065#else
4066 { 0, 0, NoIntrinsic, { 0, 0 } },
4067#endif
4068#if ENABLE(WEBGL)
4069 { "TEXTURE21", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84D5) } },
4070#else
4071 { 0, 0, NoIntrinsic, { 0, 0 } },
4072#endif
4073#if ENABLE(WEBGL)
4074 { "TEXTURE22", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84D6) } },
4075#else
4076 { 0, 0, NoIntrinsic, { 0, 0 } },
4077#endif
4078#if ENABLE(WEBGL)
4079 { "TEXTURE23", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84D7) } },
4080#else
4081 { 0, 0, NoIntrinsic, { 0, 0 } },
4082#endif
4083#if ENABLE(WEBGL)
4084 { "TEXTURE24", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84D8) } },
4085#else
4086 { 0, 0, NoIntrinsic, { 0, 0 } },
4087#endif
4088#if ENABLE(WEBGL)
4089 { "TEXTURE25", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84D9) } },
4090#else
4091 { 0, 0, NoIntrinsic, { 0, 0 } },
4092#endif
4093#if ENABLE(WEBGL)
4094 { "TEXTURE26", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84DA) } },
4095#else
4096 { 0, 0, NoIntrinsic, { 0, 0 } },
4097#endif
4098#if ENABLE(WEBGL)
4099 { "TEXTURE27", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84DB) } },
4100#else
4101 { 0, 0, NoIntrinsic, { 0, 0 } },
4102#endif
4103#if ENABLE(WEBGL)
4104 { "TEXTURE28", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84DC) } },
4105#else
4106 { 0, 0, NoIntrinsic, { 0, 0 } },
4107#endif
4108#if ENABLE(WEBGL)
4109 { "TEXTURE29", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84DD) } },
4110#else
4111 { 0, 0, NoIntrinsic, { 0, 0 } },
4112#endif
4113#if ENABLE(WEBGL)
4114 { "TEXTURE30", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84DE) } },
4115#else
4116 { 0, 0, NoIntrinsic, { 0, 0 } },
4117#endif
4118#if ENABLE(WEBGL)
4119 { "TEXTURE31", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84DF) } },
4120#else
4121 { 0, 0, NoIntrinsic, { 0, 0 } },
4122#endif
4123#if ENABLE(WEBGL)
4124 { "ACTIVE_TEXTURE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84E0) } },
4125#else
4126 { 0, 0, NoIntrinsic, { 0, 0 } },
4127#endif
4128#if ENABLE(WEBGL)
4129 { "REPEAT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x2901) } },
4130#else
4131 { 0, 0, NoIntrinsic, { 0, 0 } },
4132#endif
4133#if ENABLE(WEBGL)
4134 { "CLAMP_TO_EDGE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x812F) } },
4135#else
4136 { 0, 0, NoIntrinsic, { 0, 0 } },
4137#endif
4138#if ENABLE(WEBGL)
4139 { "MIRRORED_REPEAT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8370) } },
4140#else
4141 { 0, 0, NoIntrinsic, { 0, 0 } },
4142#endif
4143#if ENABLE(WEBGL)
4144 { "FLOAT_VEC2", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B50) } },
4145#else
4146 { 0, 0, NoIntrinsic, { 0, 0 } },
4147#endif
4148#if ENABLE(WEBGL)
4149 { "FLOAT_VEC3", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B51) } },
4150#else
4151 { 0, 0, NoIntrinsic, { 0, 0 } },
4152#endif
4153#if ENABLE(WEBGL)
4154 { "FLOAT_VEC4", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B52) } },
4155#else
4156 { 0, 0, NoIntrinsic, { 0, 0 } },
4157#endif
4158#if ENABLE(WEBGL)
4159 { "INT_VEC2", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B53) } },
4160#else
4161 { 0, 0, NoIntrinsic, { 0, 0 } },
4162#endif
4163#if ENABLE(WEBGL)
4164 { "INT_VEC3", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B54) } },
4165#else
4166 { 0, 0, NoIntrinsic, { 0, 0 } },
4167#endif
4168#if ENABLE(WEBGL)
4169 { "INT_VEC4", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B55) } },
4170#else
4171 { 0, 0, NoIntrinsic, { 0, 0 } },
4172#endif
4173#if ENABLE(WEBGL)
4174 { "BOOL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B56) } },
4175#else
4176 { 0, 0, NoIntrinsic, { 0, 0 } },
4177#endif
4178#if ENABLE(WEBGL)
4179 { "BOOL_VEC2", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B57) } },
4180#else
4181 { 0, 0, NoIntrinsic, { 0, 0 } },
4182#endif
4183#if ENABLE(WEBGL)
4184 { "BOOL_VEC3", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B58) } },
4185#else
4186 { 0, 0, NoIntrinsic, { 0, 0 } },
4187#endif
4188#if ENABLE(WEBGL)
4189 { "BOOL_VEC4", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B59) } },
4190#else
4191 { 0, 0, NoIntrinsic, { 0, 0 } },
4192#endif
4193#if ENABLE(WEBGL)
4194 { "FLOAT_MAT2", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B5A) } },
4195#else
4196 { 0, 0, NoIntrinsic, { 0, 0 } },
4197#endif
4198#if ENABLE(WEBGL)
4199 { "FLOAT_MAT3", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B5B) } },
4200#else
4201 { 0, 0, NoIntrinsic, { 0, 0 } },
4202#endif
4203#if ENABLE(WEBGL)
4204 { "FLOAT_MAT4", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B5C) } },
4205#else
4206 { 0, 0, NoIntrinsic, { 0, 0 } },
4207#endif
4208#if ENABLE(WEBGL)
4209 { "SAMPLER_2D", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B5E) } },
4210#else
4211 { 0, 0, NoIntrinsic, { 0, 0 } },
4212#endif
4213#if ENABLE(WEBGL)
4214 { "SAMPLER_CUBE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B60) } },
4215#else
4216 { 0, 0, NoIntrinsic, { 0, 0 } },
4217#endif
4218#if ENABLE(WEBGL)
4219 { "VERTEX_ATTRIB_ARRAY_ENABLED", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8622) } },
4220#else
4221 { 0, 0, NoIntrinsic, { 0, 0 } },
4222#endif
4223#if ENABLE(WEBGL)
4224 { "VERTEX_ATTRIB_ARRAY_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8623) } },
4225#else
4226 { 0, 0, NoIntrinsic, { 0, 0 } },
4227#endif
4228#if ENABLE(WEBGL)
4229 { "VERTEX_ATTRIB_ARRAY_STRIDE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8624) } },
4230#else
4231 { 0, 0, NoIntrinsic, { 0, 0 } },
4232#endif
4233#if ENABLE(WEBGL)
4234 { "VERTEX_ATTRIB_ARRAY_TYPE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8625) } },
4235#else
4236 { 0, 0, NoIntrinsic, { 0, 0 } },
4237#endif
4238#if ENABLE(WEBGL)
4239 { "VERTEX_ATTRIB_ARRAY_NORMALIZED", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x886A) } },
4240#else
4241 { 0, 0, NoIntrinsic, { 0, 0 } },
4242#endif
4243#if ENABLE(WEBGL)
4244 { "VERTEX_ATTRIB_ARRAY_POINTER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8645) } },
4245#else
4246 { 0, 0, NoIntrinsic, { 0, 0 } },
4247#endif
4248#if ENABLE(WEBGL)
4249 { "VERTEX_ATTRIB_ARRAY_BUFFER_BINDING", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x889F) } },
4250#else
4251 { 0, 0, NoIntrinsic, { 0, 0 } },
4252#endif
4253#if ENABLE(WEBGL)
4254 { "IMPLEMENTATION_COLOR_READ_TYPE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B9A) } },
4255#else
4256 { 0, 0, NoIntrinsic, { 0, 0 } },
4257#endif
4258#if ENABLE(WEBGL)
4259 { "IMPLEMENTATION_COLOR_READ_FORMAT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B9B) } },
4260#else
4261 { 0, 0, NoIntrinsic, { 0, 0 } },
4262#endif
4263#if ENABLE(WEBGL)
4264 { "COMPILE_STATUS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B81) } },
4265#else
4266 { 0, 0, NoIntrinsic, { 0, 0 } },
4267#endif
4268#if ENABLE(WEBGL)
4269 { "LOW_FLOAT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DF0) } },
4270#else
4271 { 0, 0, NoIntrinsic, { 0, 0 } },
4272#endif
4273#if ENABLE(WEBGL)
4274 { "MEDIUM_FLOAT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DF1) } },
4275#else
4276 { 0, 0, NoIntrinsic, { 0, 0 } },
4277#endif
4278#if ENABLE(WEBGL)
4279 { "HIGH_FLOAT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DF2) } },
4280#else
4281 { 0, 0, NoIntrinsic, { 0, 0 } },
4282#endif
4283#if ENABLE(WEBGL)
4284 { "LOW_INT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DF3) } },
4285#else
4286 { 0, 0, NoIntrinsic, { 0, 0 } },
4287#endif
4288#if ENABLE(WEBGL)
4289 { "MEDIUM_INT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DF4) } },
4290#else
4291 { 0, 0, NoIntrinsic, { 0, 0 } },
4292#endif
4293#if ENABLE(WEBGL)
4294 { "HIGH_INT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DF5) } },
4295#else
4296 { 0, 0, NoIntrinsic, { 0, 0 } },
4297#endif
4298#if ENABLE(WEBGL)
4299 { "FRAMEBUFFER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D40) } },
4300#else
4301 { 0, 0, NoIntrinsic, { 0, 0 } },
4302#endif
4303#if ENABLE(WEBGL)
4304 { "RENDERBUFFER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D41) } },
4305#else
4306 { 0, 0, NoIntrinsic, { 0, 0 } },
4307#endif
4308#if ENABLE(WEBGL)
4309 { "RGBA4", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8056) } },
4310#else
4311 { 0, 0, NoIntrinsic, { 0, 0 } },
4312#endif
4313#if ENABLE(WEBGL)
4314 { "RGB5_A1", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8057) } },
4315#else
4316 { 0, 0, NoIntrinsic, { 0, 0 } },
4317#endif
4318#if ENABLE(WEBGL)
4319 { "RGB565", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D62) } },
4320#else
4321 { 0, 0, NoIntrinsic, { 0, 0 } },
4322#endif
4323#if ENABLE(WEBGL)
4324 { "DEPTH_COMPONENT16", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x81A5) } },
4325#else
4326 { 0, 0, NoIntrinsic, { 0, 0 } },
4327#endif
4328#if ENABLE(WEBGL)
4329 { "STENCIL_INDEX", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1901) } },
4330#else
4331 { 0, 0, NoIntrinsic, { 0, 0 } },
4332#endif
4333#if ENABLE(WEBGL)
4334 { "STENCIL_INDEX8", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D48) } },
4335#else
4336 { 0, 0, NoIntrinsic, { 0, 0 } },
4337#endif
4338#if ENABLE(WEBGL)
4339 { "DEPTH_STENCIL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84F9) } },
4340#else
4341 { 0, 0, NoIntrinsic, { 0, 0 } },
4342#endif
4343#if ENABLE(WEBGL)
4344 { "RENDERBUFFER_WIDTH", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D42) } },
4345#else
4346 { 0, 0, NoIntrinsic, { 0, 0 } },
4347#endif
4348#if ENABLE(WEBGL)
4349 { "RENDERBUFFER_HEIGHT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D43) } },
4350#else
4351 { 0, 0, NoIntrinsic, { 0, 0 } },
4352#endif
4353#if ENABLE(WEBGL)
4354 { "RENDERBUFFER_INTERNAL_FORMAT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D44) } },
4355#else
4356 { 0, 0, NoIntrinsic, { 0, 0 } },
4357#endif
4358#if ENABLE(WEBGL)
4359 { "RENDERBUFFER_RED_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D50) } },
4360#else
4361 { 0, 0, NoIntrinsic, { 0, 0 } },
4362#endif
4363#if ENABLE(WEBGL)
4364 { "RENDERBUFFER_GREEN_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D51) } },
4365#else
4366 { 0, 0, NoIntrinsic, { 0, 0 } },
4367#endif
4368#if ENABLE(WEBGL)
4369 { "RENDERBUFFER_BLUE_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D52) } },
4370#else
4371 { 0, 0, NoIntrinsic, { 0, 0 } },
4372#endif
4373#if ENABLE(WEBGL)
4374 { "RENDERBUFFER_ALPHA_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D53) } },
4375#else
4376 { 0, 0, NoIntrinsic, { 0, 0 } },
4377#endif
4378#if ENABLE(WEBGL)
4379 { "RENDERBUFFER_DEPTH_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D54) } },
4380#else
4381 { 0, 0, NoIntrinsic, { 0, 0 } },
4382#endif
4383#if ENABLE(WEBGL)
4384 { "RENDERBUFFER_STENCIL_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D55) } },
4385#else
4386 { 0, 0, NoIntrinsic, { 0, 0 } },
4387#endif
4388#if ENABLE(WEBGL)
4389 { "FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CD0) } },
4390#else
4391 { 0, 0, NoIntrinsic, { 0, 0 } },
4392#endif
4393#if ENABLE(WEBGL)
4394 { "FRAMEBUFFER_ATTACHMENT_OBJECT_NAME", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CD1) } },
4395#else
4396 { 0, 0, NoIntrinsic, { 0, 0 } },
4397#endif
4398#if ENABLE(WEBGL)
4399 { "FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CD2) } },
4400#else
4401 { 0, 0, NoIntrinsic, { 0, 0 } },
4402#endif
4403#if ENABLE(WEBGL)
4404 { "FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CD3) } },
4405#else
4406 { 0, 0, NoIntrinsic, { 0, 0 } },
4407#endif
4408#if ENABLE(WEBGL)
4409 { "COLOR_ATTACHMENT0", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CE0) } },
4410#else
4411 { 0, 0, NoIntrinsic, { 0, 0 } },
4412#endif
4413#if ENABLE(WEBGL)
4414 { "DEPTH_ATTACHMENT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D00) } },
4415#else
4416 { 0, 0, NoIntrinsic, { 0, 0 } },
4417#endif
4418#if ENABLE(WEBGL)
4419 { "STENCIL_ATTACHMENT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D20) } },
4420#else
4421 { 0, 0, NoIntrinsic, { 0, 0 } },
4422#endif
4423#if ENABLE(WEBGL)
4424 { "DEPTH_STENCIL_ATTACHMENT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x821A) } },
4425#else
4426 { 0, 0, NoIntrinsic, { 0, 0 } },
4427#endif
4428#if ENABLE(WEBGL)
4429 { "NONE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0) } },
4430#else
4431 { 0, 0, NoIntrinsic, { 0, 0 } },
4432#endif
4433#if ENABLE(WEBGL)
4434 { "FRAMEBUFFER_COMPLETE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CD5) } },
4435#else
4436 { 0, 0, NoIntrinsic, { 0, 0 } },
4437#endif
4438#if ENABLE(WEBGL)
4439 { "FRAMEBUFFER_INCOMPLETE_ATTACHMENT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CD6) } },
4440#else
4441 { 0, 0, NoIntrinsic, { 0, 0 } },
4442#endif
4443#if ENABLE(WEBGL)
4444 { "FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CD7) } },
4445#else
4446 { 0, 0, NoIntrinsic, { 0, 0 } },
4447#endif
4448#if ENABLE(WEBGL)
4449 { "FRAMEBUFFER_INCOMPLETE_DIMENSIONS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CD9) } },
4450#else
4451 { 0, 0, NoIntrinsic, { 0, 0 } },
4452#endif
4453#if ENABLE(WEBGL)
4454 { "FRAMEBUFFER_UNSUPPORTED", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CDD) } },
4455#else
4456 { 0, 0, NoIntrinsic, { 0, 0 } },
4457#endif
4458#if ENABLE(WEBGL)
4459 { "FRAMEBUFFER_BINDING", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CA6) } },
4460#else
4461 { 0, 0, NoIntrinsic, { 0, 0 } },
4462#endif
4463#if ENABLE(WEBGL)
4464 { "RENDERBUFFER_BINDING", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CA7) } },
4465#else
4466 { 0, 0, NoIntrinsic, { 0, 0 } },
4467#endif
4468#if ENABLE(WEBGL)
4469 { "MAX_RENDERBUFFER_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84E8) } },
4470#else
4471 { 0, 0, NoIntrinsic, { 0, 0 } },
4472#endif
4473#if ENABLE(WEBGL)
4474 { "INVALID_FRAMEBUFFER_OPERATION", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0506) } },
4475#else
4476 { 0, 0, NoIntrinsic, { 0, 0 } },
4477#endif
4478#if ENABLE(WEBGL)
4479 { "UNPACK_FLIP_Y_WEBGL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x9240) } },
4480#else
4481 { 0, 0, NoIntrinsic, { 0, 0 } },
4482#endif
4483#if ENABLE(WEBGL)
4484 { "UNPACK_PREMULTIPLY_ALPHA_WEBGL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x9241) } },
4485#else
4486 { 0, 0, NoIntrinsic, { 0, 0 } },
4487#endif
4488#if ENABLE(WEBGL)
4489 { "CONTEXT_LOST_WEBGL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x9242) } },
4490#else
4491 { 0, 0, NoIntrinsic, { 0, 0 } },
4492#endif
4493#if ENABLE(WEBGL)
4494 { "UNPACK_COLORSPACE_CONVERSION_WEBGL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x9243) } },
4495#else
4496 { 0, 0, NoIntrinsic, { 0, 0 } },
4497#endif
4498#if ENABLE(WEBGL)
4499 { "BROWSER_DEFAULT_WEBGL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x9244) } },
4500#else
4501 { 0, 0, NoIntrinsic, { 0, 0 } },
4502#endif
4503};
4504
4505static const HashTable JSWebGL2RenderingContextConstructorTable = { 562, 2047, true, nullptr, JSWebGL2RenderingContextConstructorTableValues, JSWebGL2RenderingContextConstructorTableIndex };
4506template<> const unsigned JSWebGL2RenderingContextDOMConstructor::StructureFlags = Base::StructureFlags | JSC::HasStaticPropertyTable;
4507template<> const ClassInfo JSWebGL2RenderingContextDOMConstructor::s_info = { "WebGL2RenderingContext", &Base::s_info, &JSWebGL2RenderingContextConstructorTable, nullptr, CREATE_METHOD_TABLE(JSWebGL2RenderingContextDOMConstructor) };
4508
4509template<> JSValue JSWebGL2RenderingContextDOMConstructor::prototypeForStructure(JSC::VM& vm, const JSDOMGlobalObject& globalObject)
4510{
4511 UNUSED_PARAM(vm);
4512 return globalObject.functionPrototype();
4513}
4514
4515template<> void JSWebGL2RenderingContextDOMConstructor::initializeProperties(VM& vm, JSDOMGlobalObject& globalObject)
4516{
4517 putDirect(vm, vm.propertyNames->prototype, JSWebGL2RenderingContext::prototype(vm, globalObject), JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum);
4518 putDirect(vm, vm.propertyNames->name, jsNontrivialString(vm, "WebGL2RenderingContext"_s), JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum);
4519 putDirect(vm, vm.propertyNames->length, jsNumber(0), JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum);
4520 reifyStaticProperties(vm, nullptr, JSWebGL2RenderingContextConstructorTableValues, *this);
4521}
4522
4523/* Hash table for Prototype */
4524
4525static const struct CompactHashIndex JSWebGL2RenderingContextPrototypeTableIndex[2190] = {
4526 { 421, -1 },
4527 { -1, -1 },
4528 { 516, 2109 },
4529 { -1, -1 },
4530 { -1, -1 },
4531 { -1, -1 },
4532 { -1, -1 },
4533 { -1, -1 },
4534 { 53, 2103 },
4535 { -1, -1 },
4536 { 171, -1 },
4537 { -1, -1 },
4538 { -1, -1 },
4539 { 128, -1 },
4540 { -1, -1 },
4541 { 464, -1 },
4542 { -1, -1 },
4543 { -1, -1 },
4544 { 788, -1 },
4545 { -1, -1 },
4546 { -1, -1 },
4547 { -1, -1 },
4548 { -1, -1 },
4549 { 374, -1 },
4550 { -1, -1 },
4551 { -1, -1 },
4552 { 311, -1 },
4553 { 123, -1 },
4554 { -1, -1 },
4555 { -1, -1 },
4556 { 51, -1 },
4557 { -1, -1 },
4558 { -1, -1 },
4559 { -1, -1 },
4560 { -1, -1 },
4561 { -1, -1 },
4562 { -1, -1 },
4563 { -1, -1 },
4564 { -1, -1 },
4565 { -1, -1 },
4566 { -1, -1 },
4567 { -1, -1 },
4568 { 291, -1 },
4569 { -1, -1 },
4570 { -1, -1 },
4571 { -1, -1 },
4572 { -1, -1 },
4573 { -1, -1 },
4574 { -1, -1 },
4575 { -1, -1 },
4576 { 216, -1 },
4577 { -1, -1 },
4578 { -1, -1 },
4579 { -1, -1 },
4580 { -1, -1 },
4581 { -1, -1 },
4582 { 649, -1 },
4583 { -1, -1 },
4584 { 387, 2161 },
4585 { -1, -1 },
4586 { -1, -1 },
4587 { -1, -1 },
4588 { -1, -1 },
4589 { 284, -1 },
4590 { -1, -1 },
4591 { 46, 2059 },
4592 { -1, -1 },
4593 { -1, -1 },
4594 { 154, 2175 },
4595 { -1, -1 },
4596 { -1, -1 },
4597 { 678, -1 },
4598 { -1, -1 },
4599 { -1, -1 },
4600 { 82, -1 },
4601 { -1, -1 },
4602 { -1, -1 },
4603 { -1, -1 },
4604 { -1, -1 },
4605 { 85, 2188 },
4606 { -1, -1 },
4607 { 92, -1 },
4608 { 645, -1 },
4609 { -1, -1 },
4610 { -1, -1 },
4611 { -1, -1 },
4612 { -1, -1 },
4613 { -1, -1 },
4614 { -1, -1 },
4615 { 379, -1 },
4616 { -1, -1 },
4617 { 260, 2142 },
4618 { -1, -1 },
4619 { -1, -1 },
4620 { -1, -1 },
4621 { 301, -1 },
4622 { -1, -1 },
4623 { 723, -1 },
4624 { -1, -1 },
4625 { 64, -1 },
4626 { 448, -1 },
4627 { -1, -1 },
4628 { -1, -1 },
4629 { 196, -1 },
4630 { -1, -1 },
4631 { 101, -1 },
4632 { -1, -1 },
4633 { -1, -1 },
4634 { -1, -1 },
4635 { -1, -1 },
4636 { -1, -1 },
4637 { -1, -1 },
4638 { -1, -1 },
4639 { -1, -1 },
4640 { -1, -1 },
4641 { 13, 2048 },
4642 { -1, -1 },
4643 { -1, -1 },
4644 { -1, -1 },
4645 { -1, -1 },
4646 { -1, -1 },
4647 { -1, -1 },
4648 { -1, -1 },
4649 { -1, -1 },
4650 { -1, -1 },
4651 { -1, -1 },
4652 { -1, -1 },
4653 { 530, -1 },
4654 { -1, -1 },
4655 { -1, -1 },
4656 { 147, -1 },
4657 { -1, -1 },
4658 { -1, -1 },
4659 { -1, -1 },
4660 { -1, -1 },
4661 { 605, -1 },
4662 { -1, -1 },
4663 { -1, -1 },
4664 { -1, -1 },
4665 { 463, -1 },
4666 { -1, -1 },
4667 { 36, -1 },
4668 { -1, -1 },
4669 { -1, -1 },
4670 { -1, -1 },
4671 { -1, -1 },
4672 { 430, -1 },
4673 { 48, -1 },
4674 { -1, -1 },
4675 { 130, -1 },
4676 { -1, -1 },
4677 { -1, -1 },
4678 { 491, -1 },
4679 { -1, -1 },
4680 { -1, -1 },
4681 { 309, -1 },
4682 { 688, -1 },
4683 { -1, -1 },
4684 { -1, -1 },
4685 { -1, -1 },
4686 { 78, -1 },
4687 { -1, -1 },
4688 { -1, -1 },
4689 { -1, -1 },
4690 { -1, -1 },
4691 { 635, -1 },
4692 { -1, -1 },
4693 { -1, -1 },
4694 { -1, -1 },
4695 { 453, -1 },
4696 { -1, -1 },
4697 { -1, -1 },
4698 { -1, -1 },
4699 { 760, -1 },
4700 { 385, -1 },
4701 { 323, -1 },
4702 { 279, 2086 },
4703 { 711, -1 },
4704 { -1, -1 },
4705 { 236, -1 },
4706 { -1, -1 },
4707 { -1, -1 },
4708 { 709, -1 },
4709 { -1, -1 },
4710 { -1, -1 },
4711 { -1, -1 },
4712 { 83, 2117 },
4713 { 442, -1 },
4714 { -1, -1 },
4715 { -1, -1 },
4716 { 179, 2072 },
4717 { -1, -1 },
4718 { -1, -1 },
4719 { -1, -1 },
4720 { -1, -1 },
4721 { 328, -1 },
4722 { -1, -1 },
4723 { 172, -1 },
4724 { -1, -1 },
4725 { 159, -1 },
4726 { 243, 2131 },
4727 { -1, -1 },
4728 { -1, -1 },
4729 { 169, 2153 },
4730 { 666, -1 },
4731 { -1, -1 },
4732 { 226, 2096 },
4733 { -1, -1 },
4734 { 744, -1 },
4735 { 417, -1 },
4736 { -1, -1 },
4737 { 730, -1 },
4738 { -1, -1 },
4739 { -1, -1 },
4740 { -1, -1 },
4741 { 8, -1 },
4742 { -1, -1 },
4743 { -1, -1 },
4744 { 544, -1 },
4745 { -1, -1 },
4746 { -1, -1 },
4747 { -1, -1 },
4748 { 45, -1 },
4749 { -1, -1 },
4750 { -1, -1 },
4751 { -1, -1 },
4752 { -1, -1 },
4753 { -1, -1 },
4754 { 268, -1 },
4755 { -1, -1 },
4756 { 348, -1 },
4757 { 286, -1 },
4758 { 213, -1 },
4759 { -1, -1 },
4760 { -1, -1 },
4761 { 303, -1 },
4762 { 477, -1 },
4763 { -1, -1 },
4764 { -1, -1 },
4765 { -1, -1 },
4766 { -1, -1 },
4767 { -1, -1 },
4768 { -1, -1 },
4769 { -1, -1 },
4770 { -1, -1 },
4771 { -1, -1 },
4772 { -1, -1 },
4773 { -1, -1 },
4774 { 14, -1 },
4775 { -1, -1 },
4776 { -1, -1 },
4777 { -1, -1 },
4778 { -1, -1 },
4779 { -1, -1 },
4780 { -1, -1 },
4781 { -1, -1 },
4782 { 472, -1 },
4783 { -1, -1 },
4784 { -1, -1 },
4785 { -1, -1 },
4786 { -1, -1 },
4787 { 314, -1 },
4788 { -1, -1 },
4789 { -1, -1 },
4790 { -1, -1 },
4791 { 427, -1 },
4792 { -1, -1 },
4793 { 322, -1 },
4794 { -1, -1 },
4795 { -1, -1 },
4796 { -1, -1 },
4797 { -1, -1 },
4798 { -1, -1 },
4799 { 499, 2167 },
4800 { -1, -1 },
4801 { -1, -1 },
4802 { -1, -1 },
4803 { 201, 2126 },
4804 { -1, -1 },
4805 { 406, -1 },
4806 { -1, -1 },
4807 { -1, -1 },
4808 { 562, 2129 },
4809 { 717, -1 },
4810 { -1, -1 },
4811 { -1, -1 },
4812 { 638, -1 },
4813 { -1, -1 },
4814 { -1, -1 },
4815 { -1, -1 },
4816 { -1, -1 },
4817 { -1, -1 },
4818 { -1, -1 },
4819 { -1, -1 },
4820 { -1, -1 },
4821 { -1, -1 },
4822 { 404, -1 },
4823 { -1, -1 },
4824 { -1, -1 },
4825 { -1, -1 },
4826 { 84, -1 },
4827 { -1, -1 },
4828 { -1, -1 },
4829 { -1, -1 },
4830 { -1, -1 },
4831 { -1, -1 },
4832 { 109, -1 },
4833 { -1, -1 },
4834 { -1, -1 },
4835 { -1, -1 },
4836 { 574, -1 },
4837 { -1, -1 },
4838 { -1, -1 },
4839 { 218, -1 },
4840 { -1, -1 },
4841 { 339, 2089 },
4842 { -1, -1 },
4843 { -1, -1 },
4844 { -1, -1 },
4845 { 208, -1 },
4846 { -1, -1 },
4847 { 560, -1 },
4848 { -1, -1 },
4849 { -1, -1 },
4850 { -1, -1 },
4851 { -1, -1 },
4852 { -1, -1 },
4853 { -1, -1 },
4854 { 563, 2135 },
4855 { -1, -1 },
4856 { 289, 2094 },
4857 { -1, -1 },
4858 { -1, -1 },
4859 { 275, 2122 },
4860 { -1, -1 },
4861 { -1, -1 },
4862 { -1, -1 },
4863 { 79, 2049 },
4864 { 344, 2123 },
4865 { 413, -1 },
4866 { 637, -1 },
4867 { 470, 2112 },
4868 { 10, -1 },
4869 { -1, -1 },
4870 { -1, -1 },
4871 { 403, -1 },
4872 { 116, -1 },
4873 { 19, 2058 },
4874 { 414, -1 },
4875 { -1, -1 },
4876 { -1, -1 },
4877 { -1, -1 },
4878 { -1, -1 },
4879 { 641, -1 },
4880 { -1, -1 },
4881 { -1, -1 },
4882 { -1, -1 },
4883 { -1, -1 },
4884 { -1, -1 },
4885 { 785, -1 },
4886 { 177, -1 },
4887 { -1, -1 },
4888 { -1, -1 },
4889 { -1, -1 },
4890 { -1, -1 },
4891 { -1, -1 },
4892 { 1, -1 },
4893 { 371, -1 },
4894 { 308, -1 },
4895 { -1, -1 },
4896 { -1, -1 },
4897 { 368, -1 },
4898 { -1, -1 },
4899 { -1, -1 },
4900 { -1, -1 },
4901 { -1, -1 },
4902 { -1, -1 },
4903 { -1, -1 },
4904 { -1, -1 },
4905 { 67, 2177 },
4906 { 673, 2158 },
4907 { -1, -1 },
4908 { -1, -1 },
4909 { 357, 2163 },
4910 { -1, -1 },
4911 { -1, -1 },
4912 { -1, -1 },
4913 { -1, -1 },
4914 { 76, -1 },
4915 { -1, -1 },
4916 { -1, -1 },
4917 { -1, -1 },
4918 { -1, -1 },
4919 { -1, -1 },
4920 { -1, -1 },
4921 { -1, -1 },
4922 { -1, -1 },
4923 { -1, -1 },
4924 { -1, -1 },
4925 { -1, -1 },
4926 { 32, -1 },
4927 { -1, -1 },
4928 { -1, -1 },
4929 { -1, -1 },
4930 { 140, -1 },
4931 { -1, -1 },
4932 { -1, -1 },
4933 { -1, -1 },
4934 { 595, 2180 },
4935 { -1, -1 },
4936 { -1, -1 },
4937 { -1, -1 },
4938 { -1, -1 },
4939 { -1, -1 },
4940 { 281, 2119 },
4941 { -1, -1 },
4942 { 259, -1 },
4943 { 81, -1 },
4944 { -1, -1 },
4945 { 4, 2068 },
4946 { -1, -1 },
4947 { -1, -1 },
4948 { -1, -1 },
4949 { -1, -1 },
4950 { 60, -1 },
4951 { -1, -1 },
4952 { -1, -1 },
4953 { -1, -1 },
4954 { -1, -1 },
4955 { -1, -1 },
4956 { 338, -1 },
4957 { -1, -1 },
4958 { 439, 2168 },
4959 { -1, -1 },
4960 { -1, -1 },
4961 { -1, -1 },
4962 { -1, -1 },
4963 { -1, -1 },
4964 { -1, -1 },
4965 { -1, -1 },
4966 { -1, -1 },
4967 { -1, -1 },
4968 { -1, -1 },
4969 { -1, -1 },
4970 { -1, -1 },
4971 { -1, -1 },
4972 { -1, -1 },
4973 { -1, -1 },
4974 { -1, -1 },
4975 { 412, -1 },
4976 { -1, -1 },
4977 { -1, -1 },
4978 { 18, -1 },
4979 { 497, 2111 },
4980 { -1, -1 },
4981 { -1, -1 },
4982 { -1, -1 },
4983 { -1, -1 },
4984 { 320, -1 },
4985 { -1, -1 },
4986 { 168, 2151 },
4987 { -1, -1 },
4988 { -1, -1 },
4989 { 443, -1 },
4990 { -1, -1 },
4991 { 139, -1 },
4992 { -1, -1 },
4993 { -1, -1 },
4994 { 699, -1 },
4995 { -1, -1 },
4996 { -1, -1 },
4997 { -1, -1 },
4998 { -1, -1 },
4999 { 460, 2162 },
5000 { -1, -1 },
5001 { -1, -1 },
5002 { -1, -1 },
5003 { 761, -1 },
5004 { -1, -1 },
5005 { -1, -1 },
5006 { 96, -1 },
5007 { -1, -1 },
5008 { -1, -1 },
5009 { -1, -1 },
5010 { -1, -1 },
5011 { -1, -1 },
5012 { 5, -1 },
5013 { -1, -1 },
5014 { -1, -1 },
5015 { -1, -1 },
5016 { -1, -1 },
5017 { -1, -1 },
5018 { 209, -1 },
5019 { -1, -1 },
5020 { 263, -1 },
5021 { -1, -1 },
5022 { 337, -1 },
5023 { -1, -1 },
5024 { -1, -1 },
5025 { 264, -1 },
5026 { -1, -1 },
5027 { 237, -1 },
5028 { 162, 2073 },
5029 { -1, -1 },
5030 { 514, -1 },
5031 { -1, -1 },
5032 { 173, 2054 },
5033 { 686, -1 },
5034 { 223, -1 },
5035 { -1, -1 },
5036 { 127, -1 },
5037 { -1, -1 },
5038 { 114, 2069 },
5039 { -1, -1 },
5040 { -1, -1 },
5041 { -1, -1 },
5042 { -1, -1 },
5043 { -1, -1 },
5044 { -1, -1 },
5045 { -1, -1 },
5046 { 565, -1 },
5047 { -1, -1 },
5048 { -1, -1 },
5049 { -1, -1 },
5050 { -1, -1 },
5051 { -1, -1 },
5052 { -1, -1 },
5053 { 39, 2079 },
5054 { -1, -1 },
5055 { -1, -1 },
5056 { 728, -1 },
5057 { -1, -1 },
5058 { 712, -1 },
5059 { -1, -1 },
5060 { -1, -1 },
5061 { -1, -1 },
5062 { 415, -1 },
5063 { -1, -1 },
5064 { -1, -1 },
5065 { -1, -1 },
5066 { -1, -1 },
5067 { -1, -1 },
5068 { -1, -1 },
5069 { -1, -1 },
5070 { -1, -1 },
5071 { -1, -1 },
5072 { 16, -1 },
5073 { -1, -1 },
5074 { 232, -1 },
5075 { 476, -1 },
5076 { -1, -1 },
5077 { -1, -1 },
5078 { -1, -1 },
5079 { -1, -1 },
5080 { -1, -1 },
5081 { 746, -1 },
5082 { -1, -1 },
5083 { -1, -1 },
5084 { -1, -1 },
5085 { -1, -1 },
5086 { -1, -1 },
5087 { -1, -1 },
5088 { 519, -1 },
5089 { -1, -1 },
5090 { -1, -1 },
5091 { 694, 2178 },
5092 { -1, -1 },
5093 { -1, -1 },
5094 { 224, -1 },
5095 { -1, -1 },
5096 { 588, -1 },
5097 { 145, -1 },
5098 { -1, -1 },
5099 { 234, -1 },
5100 { -1, -1 },
5101 { -1, -1 },
5102 { -1, -1 },
5103 { -1, -1 },
5104 { 452, 2101 },
5105 { -1, -1 },
5106 { 720, -1 },
5107 { 327, 2081 },
5108 { -1, -1 },
5109 { 423, -1 },
5110 { -1, -1 },
5111 { 69, -1 },
5112 { 471, 2141 },
5113 { -1, -1 },
5114 { 751, -1 },
5115 { 198, -1 },
5116 { -1, -1 },
5117 { 656, -1 },
5118 { -1, -1 },
5119 { 568, -1 },
5120 { 122, -1 },
5121 { 136, -1 },
5122 { 489, -1 },
5123 { 527, -1 },
5124 { -1, -1 },
5125 { -1, -1 },
5126 { 214, 2121 },
5127 { -1, -1 },
5128 { 376, 2185 },
5129 { -1, -1 },
5130 { -1, -1 },
5131 { 479, -1 },
5132 { -1, -1 },
5133 { -1, -1 },
5134 { -1, -1 },
5135 { -1, -1 },
5136 { -1, -1 },
5137 { 205, -1 },
5138 { -1, -1 },
5139 { 166, 2140 },
5140 { 80, -1 },
5141 { -1, -1 },
5142 { -1, -1 },
5143 { 457, -1 },
5144 { -1, -1 },
5145 { -1, -1 },
5146 { -1, -1 },
5147 { -1, -1 },
5148 { 689, -1 },
5149 { -1, -1 },
5150 { 373, -1 },
5151 { -1, -1 },
5152 { -1, -1 },
5153 { -1, -1 },
5154 { -1, -1 },
5155 { -1, -1 },
5156 { -1, -1 },
5157 { -1, -1 },
5158 { 220, -1 },
5159 { -1, -1 },
5160 { -1, -1 },
5161 { 750, -1 },
5162 { -1, -1 },
5163 { -1, -1 },
5164 { -1, -1 },
5165 { -1, -1 },
5166 { -1, -1 },
5167 { -1, -1 },
5168 { -1, -1 },
5169 { -1, -1 },
5170 { -1, -1 },
5171 { 584, -1 },
5172 { -1, -1 },
5173 { 510, -1 },
5174 { -1, -1 },
5175 { -1, -1 },
5176 { -1, -1 },
5177 { -1, -1 },
5178 { -1, -1 },
5179 { 651, -1 },
5180 { 542, -1 },
5181 { -1, -1 },
5182 { 235, -1 },
5183 { -1, -1 },
5184 { -1, -1 },
5185 { 710, -1 },
5186 { -1, -1 },
5187 { -1, -1 },
5188 { -1, -1 },
5189 { -1, -1 },
5190 { -1, -1 },
5191 { -1, -1 },
5192 { -1, -1 },
5193 { 326, -1 },
5194 { -1, -1 },
5195 { -1, -1 },
5196 { 335, -1 },
5197 { -1, -1 },
5198 { -1, -1 },
5199 { -1, -1 },
5200 { -1, -1 },
5201 { 624, -1 },
5202 { -1, -1 },
5203 { 189, 2098 },
5204 { -1, -1 },
5205 { -1, -1 },
5206 { -1, -1 },
5207 { -1, -1 },
5208 { -1, -1 },
5209 { -1, -1 },
5210 { 655, -1 },
5211 { -1, -1 },
5212 { 187, 2171 },
5213 { 71, 2166 },
5214 { 165, -1 },
5215 { -1, -1 },
5216 { 700, -1 },
5217 { -1, -1 },
5218 { -1, -1 },
5219 { 167, -1 },
5220 { -1, -1 },
5221 { -1, -1 },
5222 { 467, 2118 },
5223 { 786, -1 },
5224 { -1, -1 },
5225 { 671, -1 },
5226 { 402, -1 },
5227 { 252, -1 },
5228 { 502, -1 },
5229 { -1, -1 },
5230 { -1, -1 },
5231 { -1, -1 },
5232 { -1, -1 },
5233 { 43, -1 },
5234 { -1, -1 },
5235 { 550, -1 },
5236 { -1, -1 },
5237 { -1, -1 },
5238 { -1, -1 },
5239 { 134, -1 },
5240 { 742, -1 },
5241 { 767, -1 },
5242 { 757, -1 },
5243 { -1, -1 },
5244 { -1, -1 },
5245 { -1, -1 },
5246 { -1, -1 },
5247 { 754, -1 },
5248 { 640, -1 },
5249 { -1, -1 },
5250 { 745, -1 },
5251 { -1, -1 },
5252 { -1, -1 },
5253 { -1, -1 },
5254 { -1, -1 },
5255 { 532, -1 },
5256 { 17, -1 },
5257 { -1, -1 },
5258 { -1, -1 },
5259 { 592, -1 },
5260 { -1, -1 },
5261 { 351, -1 },
5262 { 87, -1 },
5263 { -1, -1 },
5264 { -1, -1 },
5265 { 59, 2159 },
5266 { -1, -1 },
5267 { -1, -1 },
5268 { -1, -1 },
5269 { -1, -1 },
5270 { 6, -1 },
5271 { -1, -1 },
5272 { -1, -1 },
5273 { -1, -1 },
5274 { -1, -1 },
5275 { 332, 2128 },
5276 { -1, -1 },
5277 { -1, -1 },
5278 { -1, -1 },
5279 { 355, -1 },
5280 { -1, -1 },
5281 { -1, -1 },
5282 { -1, -1 },
5283 { -1, -1 },
5284 { 153, 2062 },
5285 { -1, -1 },
5286 { -1, -1 },
5287 { -1, -1 },
5288 { -1, -1 },
5289 { 503, -1 },
5290 { 221, -1 },
5291 { -1, -1 },
5292 { 741, -1 },
5293 { -1, -1 },
5294 { -1, -1 },
5295 { -1, -1 },
5296 { 161, 2053 },
5297 { -1, -1 },
5298 { 184, -1 },
5299 { 246, 2066 },
5300 { -1, -1 },
5301 { 383, -1 },
5302 { -1, -1 },
5303 { 131, -1 },
5304 { 285, -1 },
5305 { 292, -1 },
5306 { 493, -1 },
5307 { -1, -1 },
5308 { -1, -1 },
5309 { -1, -1 },
5310 { 682, -1 },
5311 { -1, -1 },
5312 { -1, -1 },
5313 { 570, -1 },
5314 { -1, -1 },
5315 { -1, -1 },
5316 { -1, -1 },
5317 { -1, -1 },
5318 { -1, -1 },
5319 { 242, 2065 },
5320 { 21, -1 },
5321 { 670, -1 },
5322 { -1, -1 },
5323 { -1, -1 },
5324 { -1, -1 },
5325 { -1, -1 },
5326 { -1, -1 },
5327 { -1, -1 },
5328 { 639, -1 },
5329 { -1, -1 },
5330 { 217, 2080 },
5331 { -1, -1 },
5332 { 244, -1 },
5333 { 110, -1 },
5334 { 451, -1 },
5335 { -1, -1 },
5336 { -1, -1 },
5337 { -1, -1 },
5338 { -1, -1 },
5339 { 202, -1 },
5340 { -1, -1 },
5341 { 175, 2060 },
5342 { -1, -1 },
5343 { -1, -1 },
5344 { -1, -1 },
5345 { 280, -1 },
5346 { -1, -1 },
5347 { 441, -1 },
5348 { 350, -1 },
5349 { -1, -1 },
5350 { 520, -1 },
5351 { -1, -1 },
5352 { -1, -1 },
5353 { -1, -1 },
5354 { -1, -1 },
5355 { -1, -1 },
5356 { 704, -1 },
5357 { -1, -1 },
5358 { 346, -1 },
5359 { 325, -1 },
5360 { -1, -1 },
5361 { 294, -1 },
5362 { -1, -1 },
5363 { -1, -1 },
5364 { -1, -1 },
5365 { -1, -1 },
5366 { -1, -1 },
5367 { -1, -1 },
5368 { -1, -1 },
5369 { -1, -1 },
5370 { 50, -1 },
5371 { 9, -1 },
5372 { -1, -1 },
5373 { -1, -1 },
5374 { -1, -1 },
5375 { -1, -1 },
5376 { -1, -1 },
5377 { 395, 2170 },
5378 { -1, -1 },
5379 { -1, -1 },
5380 { -1, -1 },
5381 { 261, -1 },
5382 { 609, -1 },
5383 { -1, -1 },
5384 { 597, -1 },
5385 { -1, -1 },
5386 { 697, -1 },
5387 { -1, -1 },
5388 { -1, -1 },
5389 { -1, -1 },
5390 { -1, -1 },
5391 { -1, -1 },
5392 { -1, -1 },
5393 { -1, -1 },
5394 { -1, -1 },
5395 { -1, -1 },
5396 { -1, -1 },
5397 { 675, -1 },
5398 { -1, -1 },
5399 { 345, -1 },
5400 { -1, -1 },
5401 { -1, -1 },
5402 { -1, -1 },
5403 { -1, -1 },
5404 { -1, -1 },
5405 { -1, -1 },
5406 { -1, -1 },
5407 { 606, -1 },
5408 { -1, -1 },
5409 { -1, -1 },
5410 { -1, -1 },
5411 { 315, -1 },
5412 { -1, -1 },
5413 { 108, -1 },
5414 { -1, -1 },
5415 { -1, -1 },
5416 { -1, -1 },
5417 { 600, -1 },
5418 { -1, -1 },
5419 { 449, 2149 },
5420 { -1, -1 },
5421 { 650, -1 },
5422 { -1, -1 },
5423 { 438, -1 },
5424 { -1, -1 },
5425 { 118, 2150 },
5426 { 528, -1 },
5427 { -1, -1 },
5428 { 567, -1 },
5429 { -1, -1 },
5430 { 255, 2138 },
5431 { 99, -1 },
5432 { -1, -1 },
5433 { -1, -1 },
5434 { -1, -1 },
5435 { 126, 2052 },
5436 { 70, -1 },
5437 { -1, -1 },
5438 { 572, -1 },
5439 { -1, -1 },
5440 { -1, -1 },
5441 { -1, -1 },
5442 { -1, -1 },
5443 { -1, -1 },
5444 { -1, -1 },
5445 { -1, -1 },
5446 { 12, 2050 },
5447 { 533, -1 },
5448 { -1, -1 },
5449 { -1, -1 },
5450 { -1, -1 },
5451 { 91, -1 },
5452 { -1, -1 },
5453 { -1, -1 },
5454 { -1, -1 },
5455 { -1, -1 },
5456 { -1, -1 },
5457 { -1, -1 },
5458 { 72, -1 },
5459 { -1, -1 },
5460 { 298, -1 },
5461 { -1, -1 },
5462 { -1, -1 },
5463 { 569, -1 },
5464 { -1, -1 },
5465 { -1, -1 },
5466 { -1, -1 },
5467 { 408, -1 },
5468 { 97, -1 },
5469 { 665, -1 },
5470 { -1, -1 },
5471 { -1, -1 },
5472 { -1, -1 },
5473 { 547, -1 },
5474 { -1, -1 },
5475 { 450, -1 },
5476 { 352, -1 },
5477 { 276, -1 },
5478 { 676, -1 },
5479 { -1, -1 },
5480 { 480, -1 },
5481 { -1, -1 },
5482 { 664, -1 },
5483 { -1, -1 },
5484 { 254, -1 },
5485 { -1, -1 },
5486 { -1, -1 },
5487 { 295, -1 },
5488 { -1, -1 },
5489 { -1, -1 },
5490 { -1, -1 },
5491 { -1, -1 },
5492 { -1, -1 },
5493 { -1, -1 },
5494 { -1, -1 },
5495 { -1, -1 },
5496 { -1, -1 },
5497 { -1, -1 },
5498 { -1, -1 },
5499 { -1, -1 },
5500 { -1, -1 },
5501 { -1, -1 },
5502 { -1, -1 },
5503 { -1, -1 },
5504 { 229, -1 },
5505 { -1, -1 },
5506 { 396, -1 },
5507 { -1, -1 },
5508 { -1, -1 },
5509 { -1, -1 },
5510 { -1, -1 },
5511 { 618, -1 },
5512 { 156, 2071 },
5513 { 93, 2107 },
5514 { 111, 2061 },
5515 { -1, -1 },
5516 { -1, -1 },
5517 { 188, -1 },
5518 { -1, -1 },
5519 { -1, -1 },
5520 { -1, -1 },
5521 { 577, -1 },
5522 { -1, -1 },
5523 { -1, -1 },
5524 { -1, -1 },
5525 { 733, -1 },
5526 { 219, -1 },
5527 { -1, -1 },
5528 { -1, -1 },
5529 { 238, 2145 },
5530 { 23, -1 },
5531 { -1, -1 },
5532 { -1, -1 },
5533 { 245, -1 },
5534 { 125, -1 },
5535 { -1, -1 },
5536 { -1, -1 },
5537 { 628, -1 },
5538 { -1, -1 },
5539 { 364, -1 },
5540 { 662, -1 },
5541 { 677, -1 },
5542 { 633, -1 },
5543 { -1, -1 },
5544 { -1, -1 },
5545 { -1, -1 },
5546 { -1, -1 },
5547 { -1, -1 },
5548 { -1, -1 },
5549 { -1, -1 },
5550 { -1, -1 },
5551 { -1, -1 },
5552 { -1, -1 },
5553 { 256, -1 },
5554 { -1, -1 },
5555 { -1, -1 },
5556 { -1, -1 },
5557 { -1, -1 },
5558 { -1, -1 },
5559 { -1, -1 },
5560 { -1, -1 },
5561 { -1, -1 },
5562 { -1, -1 },
5563 { 129, -1 },
5564 { 434, 2105 },
5565 { 300, 2090 },
5566 { -1, -1 },
5567 { 206, 2108 },
5568 { -1, -1 },
5569 { -1, -1 },
5570 { 181, -1 },
5571 { -1, -1 },
5572 { -1, -1 },
5573 { -1, -1 },
5574 { -1, -1 },
5575 { -1, -1 },
5576 { 698, -1 },
5577 { -1, -1 },
5578 { 707, -1 },
5579 { -1, -1 },
5580 { -1, -1 },
5581 { 646, -1 },
5582 { -1, -1 },
5583 { -1, -1 },
5584 { 200, -1 },
5585 { -1, -1 },
5586 { -1, -1 },
5587 { -1, -1 },
5588 { -1, -1 },
5589 { 277, -1 },
5590 { -1, -1 },
5591 { 446, -1 },
5592 { 28, -1 },
5593 { -1, -1 },
5594 { -1, -1 },
5595 { 777, -1 },
5596 { 358, -1 },
5597 { -1, -1 },
5598 { 456, -1 },
5599 { -1, -1 },
5600 { -1, -1 },
5601 { 340, -1 },
5602 { 44, -1 },
5603 { 537, -1 },
5604 { 390, 2133 },
5605 { 55, -1 },
5606 { -1, -1 },
5607 { -1, -1 },
5608 { -1, -1 },
5609 { -1, -1 },
5610 { -1, -1 },
5611 { -1, -1 },
5612 { -1, -1 },
5613 { 305, 2074 },
5614 { -1, -1 },
5615 { -1, -1 },
5616 { 30, -1 },
5617 { -1, -1 },
5618 { -1, -1 },
5619 { 687, -1 },
5620 { -1, -1 },
5621 { -1, -1 },
5622 { 386, 2093 },
5623 { -1, -1 },
5624 { -1, -1 },
5625 { 411, -1 },
5626 { -1, -1 },
5627 { 105, 2132 },
5628 { 26, -1 },
5629 { -1, -1 },
5630 { -1, -1 },
5631 { -1, -1 },
5632 { -1, -1 },
5633 { 748, -1 },
5634 { -1, -1 },
5635 { -1, -1 },
5636 { -1, -1 },
5637 { -1, -1 },
5638 { -1, -1 },
5639 { -1, -1 },
5640 { -1, -1 },
5641 { 506, -1 },
5642 { -1, -1 },
5643 { 342, -1 },
5644 { -1, -1 },
5645 { -1, -1 },
5646 { -1, -1 },
5647 { -1, -1 },
5648 { -1, -1 },
5649 { 287, -1 },
5650 { -1, -1 },
5651 { -1, -1 },
5652 { -1, -1 },
5653 { -1, -1 },
5654 { -1, -1 },
5655 { 468, -1 },
5656 { -1, -1 },
5657 { 394, -1 },
5658 { -1, -1 },
5659 { -1, -1 },
5660 { -1, -1 },
5661 { 192, -1 },
5662 { 363, -1 },
5663 { -1, -1 },
5664 { -1, -1 },
5665 { -1, -1 },
5666 { 25, -1 },
5667 { -1, -1 },
5668 { 737, -1 },
5669 { -1, -1 },
5670 { -1, -1 },
5671 { -1, -1 },
5672 { -1, -1 },
5673 { -1, -1 },
5674 { -1, -1 },
5675 { -1, -1 },
5676 { 132, -1 },
5677 { -1, -1 },
5678 { -1, -1 },
5679 { 494, 2169 },
5680 { 113, -1 },
5681 { 38, 2055 },
5682 { -1, -1 },
5683 { 197, -1 },
5684 { -1, -1 },
5685 { -1, -1 },
5686 { -1, -1 },
5687 { -1, -1 },
5688 { -1, -1 },
5689 { -1, -1 },
5690 { -1, -1 },
5691 { 381, -1 },
5692 { -1, -1 },
5693 { -1, -1 },
5694 { 37, -1 },
5695 { 469, -1 },
5696 { -1, -1 },
5697 { 492, -1 },
5698 { -1, -1 },
5699 { -1, -1 },
5700 { -1, -1 },
5701 { -1, -1 },
5702 { -1, -1 },
5703 { -1, -1 },
5704 { -1, -1 },
5705 { 388, -1 },
5706 { -1, -1 },
5707 { -1, -1 },
5708 { -1, -1 },
5709 { 75, -1 },
5710 { -1, -1 },
5711 { -1, -1 },
5712 { -1, -1 },
5713 { 33, -1 },
5714 { -1, -1 },
5715 { 405, -1 },
5716 { -1, -1 },
5717 { 222, -1 },
5718 { -1, -1 },
5719 { -1, -1 },
5720 { -1, -1 },
5721 { 65, -1 },
5722 { -1, -1 },
5723 { -1, -1 },
5724 { -1, -1 },
5725 { -1, -1 },
5726 { -1, -1 },
5727 { -1, -1 },
5728 { 447, -1 },
5729 { 119, -1 },
5730 { -1, -1 },
5731 { -1, -1 },
5732 { -1, -1 },
5733 { -1, -1 },
5734 { 250, -1 },
5735 { -1, -1 },
5736 { -1, -1 },
5737 { -1, -1 },
5738 { -1, -1 },
5739 { -1, -1 },
5740 { -1, -1 },
5741 { -1, -1 },
5742 { -1, -1 },
5743 { -1, -1 },
5744 { 241, -1 },
5745 { -1, -1 },
5746 { -1, -1 },
5747 { -1, -1 },
5748 { -1, -1 },
5749 { 541, -1 },
5750 { -1, -1 },
5751 { -1, -1 },
5752 { -1, -1 },
5753 { 587, 2143 },
5754 { -1, -1 },
5755 { -1, -1 },
5756 { -1, -1 },
5757 { -1, -1 },
5758 { 718, -1 },
5759 { 27, -1 },
5760 { 590, -1 },
5761 { -1, -1 },
5762 { -1, -1 },
5763 { -1, -1 },
5764 { 318, -1 },
5765 { -1, -1 },
5766 { -1, -1 },
5767 { -1, -1 },
5768 { -1, -1 },
5769 { -1, -1 },
5770 { -1, -1 },
5771 { -1, -1 },
5772 { -1, -1 },
5773 { 306, -1 },
5774 { 353, -1 },
5775 { -1, -1 },
5776 { -1, -1 },
5777 { -1, -1 },
5778 { -1, -1 },
5779 { 529, -1 },
5780 { 356, 2183 },
5781 { 619, -1 },
5782 { -1, -1 },
5783 { -1, -1 },
5784 { 524, -1 },
5785 { -1, -1 },
5786 { 199, -1 },
5787 { -1, -1 },
5788 { -1, -1 },
5789 { 102, -1 },
5790 { -1, -1 },
5791 { -1, -1 },
5792 { -1, -1 },
5793 { -1, -1 },
5794 { 407, -1 },
5795 { -1, -1 },
5796 { -1, -1 },
5797 { 360, -1 },
5798 { -1, -1 },
5799 { 696, -1 },
5800 { 508, -1 },
5801 { -1, -1 },
5802 { -1, -1 },
5803 { -1, -1 },
5804 { -1, -1 },
5805 { -1, -1 },
5806 { 580, -1 },
5807 { -1, -1 },
5808 { 500, -1 },
5809 { 599, 2136 },
5810 { -1, -1 },
5811 { -1, -1 },
5812 { -1, -1 },
5813 { 538, 2120 },
5814 { -1, -1 },
5815 { -1, -1 },
5816 { -1, -1 },
5817 { 399, -1 },
5818 { -1, -1 },
5819 { -1, -1 },
5820 { 409, -1 },
5821 { -1, -1 },
5822 { 382, -1 },
5823 { -1, -1 },
5824 { -1, -1 },
5825 { 370, -1 },
5826 { 365, 2124 },
5827 { -1, -1 },
5828 { 790, -1 },
5829 { -1, -1 },
5830 { 393, -1 },
5831 { 659, -1 },
5832 { -1, -1 },
5833 { -1, -1 },
5834 { -1, -1 },
5835 { -1, -1 },
5836 { -1, -1 },
5837 { -1, -1 },
5838 { -1, -1 },
5839 { 367, -1 },
5840 { 431, -1 },
5841 { 695, -1 },
5842 { -1, -1 },
5843 { -1, -1 },
5844 { -1, -1 },
5845 { -1, -1 },
5846 { 672, -1 },
5847 { -1, -1 },
5848 { -1, -1 },
5849 { 182, -1 },
5850 { -1, -1 },
5851 { -1, -1 },
5852 { -1, -1 },
5853 { -1, -1 },
5854 { 74, 2154 },
5855 { 106, -1 },
5856 { -1, -1 },
5857 { -1, -1 },
5858 { -1, -1 },
5859 { 582, -1 },
5860 { -1, -1 },
5861 { -1, -1 },
5862 { -1, -1 },
5863 { -1, -1 },
5864 { -1, -1 },
5865 { -1, -1 },
5866 { -1, -1 },
5867 { 20, 2097 },
5868 { -1, -1 },
5869 { -1, -1 },
5870 { -1, -1 },
5871 { -1, -1 },
5872 { -1, -1 },
5873 { -1, -1 },
5874 { 419, 2147 },
5875 { 267, -1 },
5876 { -1, -1 },
5877 { -1, -1 },
5878 { -1, -1 },
5879 { -1, -1 },
5880 { -1, -1 },
5881 { 282, -1 },
5882 { 52, -1 },
5883 { -1, -1 },
5884 { -1, -1 },
5885 { 478, -1 },
5886 { -1, -1 },
5887 { 781, -1 },
5888 { 24, -1 },
5889 { 378, -1 },
5890 { 183, -1 },
5891 { -1, -1 },
5892 { 653, -1 },
5893 { 283, -1 },
5894 { -1, -1 },
5895 { 0, -1 },
5896 { -1, -1 },
5897 { 660, -1 },
5898 { -1, -1 },
5899 { -1, -1 },
5900 { -1, -1 },
5901 { -1, -1 },
5902 { 210, 2130 },
5903 { -1, -1 },
5904 { -1, -1 },
5905 { -1, -1 },
5906 { -1, -1 },
5907 { -1, -1 },
5908 { -1, -1 },
5909 { -1, -1 },
5910 { 41, -1 },
5911 { -1, -1 },
5912 { -1, -1 },
5913 { 505, -1 },
5914 { 137, -1 },
5915 { 274, -1 },
5916 { -1, -1 },
5917 { -1, -1 },
5918 { -1, -1 },
5919 { -1, -1 },
5920 { -1, -1 },
5921 { -1, -1 },
5922 { -1, -1 },
5923 { -1, -1 },
5924 { 249, -1 },
5925 { 330, -1 },
5926 { -1, -1 },
5927 { 112, -1 },
5928 { 444, -1 },
5929 { -1, -1 },
5930 { 170, -1 },
5931 { 247, -1 },
5932 { -1, -1 },
5933 { -1, -1 },
5934 { -1, -1 },
5935 { 90, 2104 },
5936 { 766, -1 },
5937 { -1, -1 },
5938 { -1, -1 },
5939 { 523, -1 },
5940 { 278, -1 },
5941 { 612, -1 },
5942 { 715, -1 },
5943 { 304, 2084 },
5944 { -1, -1 },
5945 { 539, 2165 },
5946 { -1, -1 },
5947 { -1, -1 },
5948 { -1, -1 },
5949 { 771, -1 },
5950 { 58, 2078 },
5951 { -1, -1 },
5952 { -1, -1 },
5953 { -1, -1 },
5954 { -1, -1 },
5955 { 768, -1 },
5956 { -1, -1 },
5957 { -1, -1 },
5958 { -1, -1 },
5959 { -1, -1 },
5960 { -1, -1 },
5961 { -1, -1 },
5962 { -1, -1 },
5963 { 501, -1 },
5964 { -1, -1 },
5965 { 416, -1 },
5966 { -1, -1 },
5967 { -1, -1 },
5968 { -1, -1 },
5969 { 152, -1 },
5970 { 148, -1 },
5971 { -1, -1 },
5972 { -1, -1 },
5973 { 504, -1 },
5974 { -1, -1 },
5975 { -1, -1 },
5976 { -1, -1 },
5977 { 607, -1 },
5978 { -1, -1 },
5979 { 150, -1 },
5980 { 674, -1 },
5981 { -1, -1 },
5982 { 714, -1 },
5983 { -1, -1 },
5984 { -1, -1 },
5985 { -1, -1 },
5986 { -1, -1 },
5987 { 593, -1 },
5988 { -1, -1 },
5989 { -1, -1 },
5990 { -1, -1 },
5991 { 725, -1 },
5992 { -1, -1 },
5993 { -1, -1 },
5994 { 401, -1 },
5995 { -1, -1 },
5996 { -1, -1 },
5997 { -1, -1 },
5998 { -1, -1 },
5999 { -1, -1 },
6000 { 144, -1 },
6001 { -1, -1 },
6002 { 120, -1 },
6003 { -1, -1 },
6004 { -1, -1 },
6005 { 207, 2064 },
6006 { -1, -1 },
6007 { -1, -1 },
6008 { -1, -1 },
6009 { -1, -1 },
6010 { -1, -1 },
6011 { -1, -1 },
6012 { -1, -1 },
6013 { -1, -1 },
6014 { 553, -1 },
6015 { 107, 2157 },
6016 { -1, -1 },
6017 { -1, -1 },
6018 { -1, -1 },
6019 { -1, -1 },
6020 { -1, -1 },
6021 { -1, -1 },
6022 { -1, -1 },
6023 { -1, -1 },
6024 { 155, -1 },
6025 { -1, -1 },
6026 { -1, -1 },
6027 { -1, -1 },
6028 { -1, -1 },
6029 { 57, -1 },
6030 { 215, -1 },
6031 { -1, -1 },
6032 { -1, -1 },
6033 { -1, -1 },
6034 { -1, -1 },
6035 { -1, -1 },
6036 { -1, -1 },
6037 { 576, -1 },
6038 { -1, -1 },
6039 { 581, 2152 },
6040 { -1, -1 },
6041 { 509, -1 },
6042 { -1, -1 },
6043 { 142, -1 },
6044 { -1, -1 },
6045 { -1, -1 },
6046 { 749, -1 },
6047 { -1, -1 },
6048 { -1, -1 },
6049 { 163, 2125 },
6050 { -1, -1 },
6051 { -1, -1 },
6052 { -1, -1 },
6053 { -1, -1 },
6054 { -1, -1 },
6055 { -1, -1 },
6056 { -1, -1 },
6057 { 7, 2182 },
6058 { -1, -1 },
6059 { 483, 2184 },
6060 { -1, -1 },
6061 { -1, -1 },
6062 { -1, -1 },
6063 { -1, -1 },
6064 { 212, -1 },
6065 { 418, -1 },
6066 { -1, -1 },
6067 { -1, -1 },
6068 { -1, -1 },
6069 { -1, -1 },
6070 { -1, -1 },
6071 { -1, -1 },
6072 { -1, -1 },
6073 { -1, -1 },
6074 { -1, -1 },
6075 { 392, -1 },
6076 { -1, -1 },
6077 { -1, -1 },
6078 { -1, -1 },
6079 { -1, -1 },
6080 { -1, -1 },
6081 { -1, -1 },
6082 { -1, -1 },
6083 { 591, -1 },
6084 { -1, -1 },
6085 { -1, -1 },
6086 { -1, -1 },
6087 { -1, -1 },
6088 { -1, -1 },
6089 { -1, -1 },
6090 { -1, -1 },
6091 { -1, -1 },
6092 { -1, -1 },
6093 { 40, -1 },
6094 { -1, -1 },
6095 { -1, -1 },
6096 { 68, -1 },
6097 { -1, -1 },
6098 { 583, -1 },
6099 { -1, -1 },
6100 { -1, -1 },
6101 { 608, 2134 },
6102 { -1, -1 },
6103 { -1, -1 },
6104 { 559, -1 },
6105 { -1, -1 },
6106 { -1, -1 },
6107 { 248, -1 },
6108 { -1, -1 },
6109 { 703, -1 },
6110 { -1, -1 },
6111 { -1, -1 },
6112 { -1, -1 },
6113 { -1, -1 },
6114 { -1, -1 },
6115 { -1, -1 },
6116 { 266, 2115 },
6117 { 164, -1 },
6118 { -1, -1 },
6119 { -1, -1 },
6120 { 705, -1 },
6121 { -1, -1 },
6122 { -1, -1 },
6123 { 62, -1 },
6124 { -1, -1 },
6125 { 3, -1 },
6126 { -1, -1 },
6127 { -1, -1 },
6128 { 257, -1 },
6129 { -1, -1 },
6130 { -1, -1 },
6131 { -1, -1 },
6132 { -1, -1 },
6133 { -1, -1 },
6134 { -1, -1 },
6135 { 789, -1 },
6136 { -1, -1 },
6137 { 772, -1 },
6138 { -1, -1 },
6139 { 668, -1 },
6140 { -1, -1 },
6141 { -1, -1 },
6142 { -1, -1 },
6143 { -1, -1 },
6144 { -1, -1 },
6145 { -1, -1 },
6146 { 262, -1 },
6147 { -1, -1 },
6148 { -1, -1 },
6149 { -1, -1 },
6150 { -1, -1 },
6151 { 143, 2116 },
6152 { 354, -1 },
6153 { 536, -1 },
6154 { -1, -1 },
6155 { -1, -1 },
6156 { 706, -1 },
6157 { -1, -1 },
6158 { -1, -1 },
6159 { 316, -1 },
6160 { -1, -1 },
6161 { -1, -1 },
6162 { 31, -1 },
6163 { 783, -1 },
6164 { 89, -1 },
6165 { -1, -1 },
6166 { 290, -1 },
6167 { -1, -1 },
6168 { 186, -1 },
6169 { -1, -1 },
6170 { 317, 2082 },
6171 { -1, -1 },
6172 { -1, -1 },
6173 { -1, -1 },
6174 { -1, -1 },
6175 { -1, -1 },
6176 { -1, -1 },
6177 { 782, -1 },
6178 { -1, -1 },
6179 { -1, -1 },
6180 { 778, -1 },
6181 { -1, -1 },
6182 { -1, -1 },
6183 { -1, -1 },
6184 { -1, -1 },
6185 { 398, 2114 },
6186 { 484, -1 },
6187 { 625, -1 },
6188 { 465, -1 },
6189 { -1, -1 },
6190 { -1, -1 },
6191 { -1, -1 },
6192 { 391, -1 },
6193 { -1, -1 },
6194 { 410, -1 },
6195 { -1, -1 },
6196 { -1, -1 },
6197 { -1, -1 },
6198 { 473, -1 },
6199 { -1, -1 },
6200 { -1, -1 },
6201 { -1, -1 },
6202 { -1, -1 },
6203 { 239, -1 },
6204 { -1, -1 },
6205 { -1, -1 },
6206 { -1, -1 },
6207 { 724, -1 },
6208 { -1, -1 },
6209 { 77, -1 },
6210 { 684, -1 },
6211 { 231, 2075 },
6212 { 543, -1 },
6213 { 787, -1 },
6214 { 258, 2099 },
6215 { -1, -1 },
6216 { -1, -1 },
6217 { -1, -1 },
6218 { -1, -1 },
6219 { -1, -1 },
6220 { 642, -1 },
6221 { -1, -1 },
6222 { 61, -1 },
6223 { 313, -1 },
6224 { -1, -1 },
6225 { -1, -1 },
6226 { 11, -1 },
6227 { -1, -1 },
6228 { 454, -1 },
6229 { -1, -1 },
6230 { 716, -1 },
6231 { -1, -1 },
6232 { -1, -1 },
6233 { -1, -1 },
6234 { -1, -1 },
6235 { 157, 2077 },
6236 { -1, -1 },
6237 { -1, -1 },
6238 { 49, 2172 },
6239 { -1, -1 },
6240 { 230, -1 },
6241 { -1, -1 },
6242 { -1, -1 },
6243 { -1, -1 },
6244 { 227, 2106 },
6245 { -1, -1 },
6246 { -1, -1 },
6247 { 426, -1 },
6248 { -1, -1 },
6249 { -1, -1 },
6250 { 185, -1 },
6251 { -1, -1 },
6252 { -1, -1 },
6253 { 429, -1 },
6254 { -1, -1 },
6255 { -1, -1 },
6256 { 34, -1 },
6257 { -1, -1 },
6258 { 115, -1 },
6259 { -1, -1 },
6260 { 310, -1 },
6261 { 551, -1 },
6262 { -1, -1 },
6263 { 657, -1 },
6264 { -1, -1 },
6265 { -1, -1 },
6266 { -1, -1 },
6267 { -1, -1 },
6268 { 269, 2083 },
6269 { 158, -1 },
6270 { 458, -1 },
6271 { 566, -1 },
6272 { -1, -1 },
6273 { -1, -1 },
6274 { -1, -1 },
6275 { -1, -1 },
6276 { 548, -1 },
6277 { -1, -1 },
6278 { -1, -1 },
6279 { -1, -1 },
6280 { -1, -1 },
6281 { -1, -1 },
6282 { 22, 2139 },
6283 { -1, -1 },
6284 { 133, 2051 },
6285 { -1, -1 },
6286 { -1, -1 },
6287 { 603, -1 },
6288 { 341, -1 },
6289 { -1, -1 },
6290 { -1, -1 },
6291 { 585, -1 },
6292 { -1, -1 },
6293 { -1, -1 },
6294 { 495, -1 },
6295 { 15, 2146 },
6296 { -1, -1 },
6297 { -1, -1 },
6298 { -1, -1 },
6299 { 630, -1 },
6300 { 654, -1 },
6301 { 42, 2174 },
6302 { -1, -1 },
6303 { 420, -1 },
6304 { -1, -1 },
6305 { 204, -1 },
6306 { -1, -1 },
6307 { 753, -1 },
6308 { -1, -1 },
6309 { -1, -1 },
6310 { 2, -1 },
6311 { -1, -1 },
6312 { 598, -1 },
6313 { -1, -1 },
6314 { 121, 2085 },
6315 { -1, -1 },
6316 { -1, -1 },
6317 { -1, -1 },
6318 { -1, -1 },
6319 { -1, -1 },
6320 { 195, 2100 },
6321 { 693, -1 },
6322 { 558, -1 },
6323 { -1, -1 },
6324 { 428, 2160 },
6325 { -1, -1 },
6326 { -1, -1 },
6327 { -1, -1 },
6328 { 117, -1 },
6329 { 648, -1 },
6330 { 307, -1 },
6331 { -1, -1 },
6332 { -1, -1 },
6333 { 297, -1 },
6334 { -1, -1 },
6335 { -1, -1 },
6336 { -1, -1 },
6337 { -1, -1 },
6338 { 146, -1 },
6339 { -1, -1 },
6340 { 228, -1 },
6341 { -1, -1 },
6342 { 389, -1 },
6343 { 701, -1 },
6344 { -1, -1 },
6345 { -1, -1 },
6346 { -1, -1 },
6347 { -1, -1 },
6348 { -1, -1 },
6349 { -1, -1 },
6350 { -1, -1 },
6351 { -1, -1 },
6352 { -1, -1 },
6353 { -1, -1 },
6354 { 302, -1 },
6355 { -1, -1 },
6356 { 203, -1 },
6357 { -1, -1 },
6358 { -1, -1 },
6359 { -1, -1 },
6360 { -1, -1 },
6361 { 35, 2067 },
6362 { -1, -1 },
6363 { -1, -1 },
6364 { -1, -1 },
6365 { 100, -1 },
6366 { -1, -1 },
6367 { -1, -1 },
6368 { 708, 2179 },
6369 { -1, -1 },
6370 { -1, -1 },
6371 { -1, -1 },
6372 { 513, -1 },
6373 { 141, -1 },
6374 { -1, -1 },
6375 { -1, -1 },
6376 { 561, -1 },
6377 { -1, -1 },
6378 { -1, -1 },
6379 { -1, -1 },
6380 { -1, -1 },
6381 { -1, -1 },
6382 { -1, -1 },
6383 { -1, -1 },
6384 { 586, -1 },
6385 { -1, -1 },
6386 { -1, -1 },
6387 { -1, -1 },
6388 { -1, -1 },
6389 { -1, -1 },
6390 { -1, -1 },
6391 { -1, -1 },
6392 { 579, -1 },
6393 { -1, -1 },
6394 { -1, -1 },
6395 { 361, -1 },
6396 { -1, -1 },
6397 { -1, -1 },
6398 { -1, -1 },
6399 { -1, -1 },
6400 { -1, -1 },
6401 { -1, -1 },
6402 { -1, -1 },
6403 { -1, -1 },
6404 { -1, -1 },
6405 { 272, -1 },
6406 { -1, -1 },
6407 { -1, -1 },
6408 { -1, -1 },
6409 { 589, -1 },
6410 { -1, -1 },
6411 { 211, 2127 },
6412 { 160, -1 },
6413 { -1, -1 },
6414 { 174, -1 },
6415 { -1, -1 },
6416 { -1, -1 },
6417 { -1, -1 },
6418 { -1, -1 },
6419 { 643, -1 },
6420 { -1, -1 },
6421 { -1, -1 },
6422 { 225, -1 },
6423 { -1, -1 },
6424 { -1, -1 },
6425 { 496, -1 },
6426 { -1, -1 },
6427 { -1, -1 },
6428 { -1, -1 },
6429 { -1, -1 },
6430 { 149, -1 },
6431 { 193, 2063 },
6432 { -1, -1 },
6433 { -1, -1 },
6434 { -1, -1 },
6435 { 575, -1 },
6436 { -1, -1 },
6437 { -1, -1 },
6438 { 617, -1 },
6439 { 614, -1 },
6440 { -1, -1 },
6441 { -1, -1 },
6442 { -1, -1 },
6443 { -1, -1 },
6444 { -1, -1 },
6445 { -1, -1 },
6446 { -1, -1 },
6447 { -1, -1 },
6448 { 103, -1 },
6449 { -1, -1 },
6450 { -1, -1 },
6451 { -1, -1 },
6452 { -1, -1 },
6453 { -1, -1 },
6454 { -1, -1 },
6455 { 773, -1 },
6456 { -1, -1 },
6457 { 319, -1 },
6458 { -1, -1 },
6459 { -1, -1 },
6460 { 63, 2091 },
6461 { 240, -1 },
6462 { 377, 2176 },
6463 { -1, -1 },
6464 { 56, -1 },
6465 { -1, -1 },
6466 { 29, -1 },
6467 { -1, -1 },
6468 { 66, -1 },
6469 { -1, -1 },
6470 { -1, -1 },
6471 { -1, -1 },
6472 { -1, -1 },
6473 { -1, -1 },
6474 { -1, -1 },
6475 { -1, -1 },
6476 { -1, -1 },
6477 { 124, -1 },
6478 { -1, -1 },
6479 { -1, -1 },
6480 { 485, -1 },
6481 { -1, -1 },
6482 { -1, -1 },
6483 { 288, -1 },
6484 { -1, -1 },
6485 { -1, -1 },
6486 { -1, -1 },
6487 { -1, -1 },
6488 { 555, -1 },
6489 { -1, -1 },
6490 { 623, -1 },
6491 { -1, -1 },
6492 { 380, 2186 },
6493 { -1, -1 },
6494 { -1, -1 },
6495 { -1, -1 },
6496 { 47, -1 },
6497 { 233, -1 },
6498 { -1, -1 },
6499 { -1, -1 },
6500 { -1, -1 },
6501 { -1, -1 },
6502 { -1, -1 },
6503 { -1, -1 },
6504 { 726, -1 },
6505 { -1, -1 },
6506 { -1, -1 },
6507 { 713, -1 },
6508 { 54, 2056 },
6509 { 652, 2181 },
6510 { -1, -1 },
6511 { -1, -1 },
6512 { -1, -1 },
6513 { -1, -1 },
6514 { 573, -1 },
6515 { -1, -1 },
6516 { 594, -1 },
6517 { 433, 2164 },
6518 { -1, -1 },
6519 { -1, -1 },
6520 { -1, -1 },
6521 { -1, -1 },
6522 { -1, -1 },
6523 { -1, -1 },
6524 { -1, -1 },
6525 { 86, 2148 },
6526 { -1, -1 },
6527 { 511, -1 },
6528 { -1, -1 },
6529 { -1, -1 },
6530 { -1, -1 },
6531 { 552, -1 },
6532 { 627, -1 },
6533 { -1, -1 },
6534 { -1, -1 },
6535 { -1, -1 },
6536 { -1, -1 },
6537 { -1, -1 },
6538 { 138, -1 },
6539 { -1, -1 },
6540 { 437, -1 },
6541 { -1, -1 },
6542 { -1, -1 },
6543 { -1, -1 },
6544 { 601, -1 },
6545 { -1, -1 },
6546 { 400, 2092 },
6547 { -1, -1 },
6548 { -1, -1 },
6549 { 135, -1 },
6550 { 73, 2057 },
6551 { -1, -1 },
6552 { -1, -1 },
6553 { 293, -1 },
6554 { -1, -1 },
6555 { -1, -1 },
6556 { 683, -1 },
6557 { -1, -1 },
6558 { -1, -1 },
6559 { -1, -1 },
6560 { -1, -1 },
6561 { -1, -1 },
6562 { -1, -1 },
6563 { -1, -1 },
6564 { -1, -1 },
6565 { 95, -1 },
6566 { 621, -1 },
6567 { 369, 2187 },
6568 { -1, -1 },
6569 { 739, -1 },
6570 { -1, -1 },
6571 { -1, -1 },
6572 { -1, -1 },
6573 { 104, -1 },
6574 { 88, -1 },
6575 { 94, -1 },
6576 { 98, -1 },
6577 { 151, -1 },
6578 { 176, -1 },
6579 { 178, 2070 },
6580 { 180, -1 },
6581 { 190, -1 },
6582 { 191, -1 },
6583 { 194, -1 },
6584 { 251, -1 },
6585 { 253, -1 },
6586 { 265, -1 },
6587 { 270, -1 },
6588 { 271, -1 },
6589 { 273, -1 },
6590 { 296, -1 },
6591 { 299, -1 },
6592 { 312, -1 },
6593 { 321, 2076 },
6594 { 324, -1 },
6595 { 329, -1 },
6596 { 331, -1 },
6597 { 333, 2087 },
6598 { 334, -1 },
6599 { 336, -1 },
6600 { 343, 2102 },
6601 { 347, -1 },
6602 { 349, -1 },
6603 { 359, -1 },
6604 { 362, -1 },
6605 { 366, -1 },
6606 { 372, -1 },
6607 { 375, -1 },
6608 { 384, 2137 },
6609 { 397, -1 },
6610 { 422, -1 },
6611 { 424, -1 },
6612 { 425, 2088 },
6613 { 432, -1 },
6614 { 435, 2113 },
6615 { 436, -1 },
6616 { 440, -1 },
6617 { 445, 2095 },
6618 { 455, -1 },
6619 { 459, -1 },
6620 { 461, -1 },
6621 { 462, -1 },
6622 { 466, -1 },
6623 { 474, -1 },
6624 { 475, -1 },
6625 { 481, 2110 },
6626 { 482, -1 },
6627 { 486, -1 },
6628 { 487, -1 },
6629 { 488, -1 },
6630 { 490, 2155 },
6631 { 498, 2189 },
6632 { 507, -1 },
6633 { 512, -1 },
6634 { 515, -1 },
6635 { 517, -1 },
6636 { 518, -1 },
6637 { 521, -1 },
6638 { 522, -1 },
6639 { 525, -1 },
6640 { 526, -1 },
6641 { 531, -1 },
6642 { 534, 2173 },
6643 { 535, -1 },
6644 { 540, -1 },
6645 { 545, -1 },
6646 { 546, -1 },
6647 { 549, -1 },
6648 { 554, 2144 },
6649 { 556, -1 },
6650 { 557, -1 },
6651 { 564, -1 },
6652 { 571, -1 },
6653 { 578, -1 },
6654 { 596, 2156 },
6655 { 602, -1 },
6656 { 604, -1 },
6657 { 610, -1 },
6658 { 611, -1 },
6659 { 613, -1 },
6660 { 615, -1 },
6661 { 616, -1 },
6662 { 620, -1 },
6663 { 622, -1 },
6664 { 626, -1 },
6665 { 629, -1 },
6666 { 631, -1 },
6667 { 632, -1 },
6668 { 634, -1 },
6669 { 636, -1 },
6670 { 644, -1 },
6671 { 647, -1 },
6672 { 658, -1 },
6673 { 661, -1 },
6674 { 663, -1 },
6675 { 667, -1 },
6676 { 669, -1 },
6677 { 679, -1 },
6678 { 680, -1 },
6679 { 681, -1 },
6680 { 685, -1 },
6681 { 690, -1 },
6682 { 691, -1 },
6683 { 692, -1 },
6684 { 702, -1 },
6685 { 719, -1 },
6686 { 721, -1 },
6687 { 722, -1 },
6688 { 727, -1 },
6689 { 729, -1 },
6690 { 731, -1 },
6691 { 732, -1 },
6692 { 734, -1 },
6693 { 735, -1 },
6694 { 736, -1 },
6695 { 738, -1 },
6696 { 740, -1 },
6697 { 743, -1 },
6698 { 747, -1 },
6699 { 752, -1 },
6700 { 755, -1 },
6701 { 756, -1 },
6702 { 758, -1 },
6703 { 759, -1 },
6704 { 762, -1 },
6705 { 763, -1 },
6706 { 764, -1 },
6707 { 765, -1 },
6708 { 769, -1 },
6709 { 770, -1 },
6710 { 774, -1 },
6711 { 775, -1 },
6712 { 776, -1 },
6713 { 779, -1 },
6714 { 780, -1 },
6715 { 784, -1 },
6716};
6717
6718
6719static const HashTableValue JSWebGL2RenderingContextPrototypeTableValues[] =
6720{
6721 { "constructor", static_cast<unsigned>(JSC::PropertyAttribute::DontEnum), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGL2RenderingContextConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } },
6722#if ENABLE(WEBGL)
6723 { "canvas", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGL2RenderingContext_canvas), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(nullptr) } },
6724#else
6725 { 0, 0, NoIntrinsic, { 0, 0 } },
6726#endif
6727#if ENABLE(WEBGL)
6728 { "drawingBufferWidth", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGL2RenderingContext_drawingBufferWidth), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(nullptr) } },
6729#else
6730 { 0, 0, NoIntrinsic, { 0, 0 } },
6731#endif
6732#if ENABLE(WEBGL)
6733 { "drawingBufferHeight", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebGL2RenderingContext_drawingBufferHeight), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(nullptr) } },
6734#else
6735 { 0, 0, NoIntrinsic, { 0, 0 } },
6736#endif
6737 { "bufferData", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_bufferData), (intptr_t) (3) } },
6738 { "bufferSubData", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_bufferSubData), (intptr_t) (3) } },
6739 { "copyBufferSubData", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_copyBufferSubData), (intptr_t) (5) } },
6740 { "getBufferSubData", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_getBufferSubData), (intptr_t) (3) } },
6741 { "blitFramebuffer", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_blitFramebuffer), (intptr_t) (10) } },
6742 { "framebufferTextureLayer", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_framebufferTextureLayer), (intptr_t) (5) } },
6743 { "invalidateFramebuffer", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_invalidateFramebuffer), (intptr_t) (2) } },
6744 { "invalidateSubFramebuffer", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_invalidateSubFramebuffer), (intptr_t) (6) } },
6745 { "readBuffer", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_readBuffer), (intptr_t) (1) } },
6746 { "getInternalformatParameter", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_getInternalformatParameter), (intptr_t) (3) } },
6747 { "renderbufferStorageMultisample", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_renderbufferStorageMultisample), (intptr_t) (5) } },
6748 { "texStorage2D", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_texStorage2D), (intptr_t) (5) } },
6749 { "texStorage3D", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_texStorage3D), (intptr_t) (6) } },
6750 { "texImage3D", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_texImage3D), (intptr_t) (10) } },
6751 { "texSubImage3D", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_texSubImage3D), (intptr_t) (11) } },
6752 { "copyTexSubImage3D", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_copyTexSubImage3D), (intptr_t) (9) } },
6753 { "compressedTexImage3D", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_compressedTexImage3D), (intptr_t) (8) } },
6754 { "compressedTexSubImage3D", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_compressedTexSubImage3D), (intptr_t) (10) } },
6755 { "getFragDataLocation", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_getFragDataLocation), (intptr_t) (2) } },
6756 { "uniform1ui", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_uniform1ui), (intptr_t) (2) } },
6757 { "uniform2ui", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_uniform2ui), (intptr_t) (3) } },
6758 { "uniform3ui", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_uniform3ui), (intptr_t) (4) } },
6759 { "uniform4ui", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_uniform4ui), (intptr_t) (5) } },
6760 { "uniform1uiv", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_uniform1uiv), (intptr_t) (2) } },
6761 { "uniform2uiv", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_uniform2uiv), (intptr_t) (2) } },
6762 { "uniform3uiv", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_uniform3uiv), (intptr_t) (2) } },
6763 { "uniform4uiv", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_uniform4uiv), (intptr_t) (2) } },
6764 { "uniformMatrix2x3fv", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_uniformMatrix2x3fv), (intptr_t) (3) } },
6765 { "uniformMatrix3x2fv", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_uniformMatrix3x2fv), (intptr_t) (3) } },
6766 { "uniformMatrix2x4fv", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_uniformMatrix2x4fv), (intptr_t) (3) } },
6767 { "uniformMatrix4x2fv", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_uniformMatrix4x2fv), (intptr_t) (3) } },
6768 { "uniformMatrix3x4fv", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_uniformMatrix3x4fv), (intptr_t) (3) } },
6769 { "uniformMatrix4x3fv", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_uniformMatrix4x3fv), (intptr_t) (3) } },
6770 { "vertexAttribI4i", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_vertexAttribI4i), (intptr_t) (5) } },
6771 { "vertexAttribI4iv", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_vertexAttribI4iv), (intptr_t) (2) } },
6772 { "vertexAttribI4ui", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_vertexAttribI4ui), (intptr_t) (5) } },
6773 { "vertexAttribI4uiv", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_vertexAttribI4uiv), (intptr_t) (2) } },
6774 { "vertexAttribIPointer", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_vertexAttribIPointer), (intptr_t) (5) } },
6775 { "vertexAttribDivisor", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_vertexAttribDivisor), (intptr_t) (2) } },
6776 { "drawArraysInstanced", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_drawArraysInstanced), (intptr_t) (4) } },
6777 { "drawElementsInstanced", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_drawElementsInstanced), (intptr_t) (5) } },
6778 { "drawRangeElements", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_drawRangeElements), (intptr_t) (6) } },
6779 { "drawBuffers", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_drawBuffers), (intptr_t) (1) } },
6780 { "clearBufferiv", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_clearBufferiv), (intptr_t) (3) } },
6781 { "clearBufferuiv", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_clearBufferuiv), (intptr_t) (3) } },
6782 { "clearBufferfv", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_clearBufferfv), (intptr_t) (3) } },
6783 { "clearBufferfi", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_clearBufferfi), (intptr_t) (4) } },
6784 { "createQuery", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_createQuery), (intptr_t) (0) } },
6785 { "deleteQuery", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_deleteQuery), (intptr_t) (1) } },
6786 { "isQuery", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_isQuery), (intptr_t) (1) } },
6787 { "beginQuery", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_beginQuery), (intptr_t) (2) } },
6788 { "endQuery", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_endQuery), (intptr_t) (1) } },
6789 { "getQuery", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_getQuery), (intptr_t) (2) } },
6790 { "getQueryParameter", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_getQueryParameter), (intptr_t) (2) } },
6791 { "createSampler", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_createSampler), (intptr_t) (0) } },
6792 { "deleteSampler", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_deleteSampler), (intptr_t) (1) } },
6793 { "isSampler", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_isSampler), (intptr_t) (1) } },
6794 { "bindSampler", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_bindSampler), (intptr_t) (2) } },
6795 { "samplerParameteri", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_samplerParameteri), (intptr_t) (3) } },
6796 { "samplerParameterf", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_samplerParameterf), (intptr_t) (3) } },
6797 { "getSamplerParameter", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_getSamplerParameter), (intptr_t) (2) } },
6798 { "fenceSync", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_fenceSync), (intptr_t) (2) } },
6799 { "isSync", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_isSync), (intptr_t) (1) } },
6800 { "deleteSync", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_deleteSync), (intptr_t) (1) } },
6801 { "clientWaitSync", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_clientWaitSync), (intptr_t) (3) } },
6802 { "waitSync", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_waitSync), (intptr_t) (3) } },
6803 { "getSyncParameter", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_getSyncParameter), (intptr_t) (2) } },
6804 { "createTransformFeedback", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_createTransformFeedback), (intptr_t) (0) } },
6805 { "deleteTransformFeedback", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_deleteTransformFeedback), (intptr_t) (1) } },
6806 { "isTransformFeedback", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_isTransformFeedback), (intptr_t) (1) } },
6807 { "bindTransformFeedback", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_bindTransformFeedback), (intptr_t) (2) } },
6808 { "beginTransformFeedback", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_beginTransformFeedback), (intptr_t) (1) } },
6809 { "endTransformFeedback", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_endTransformFeedback), (intptr_t) (0) } },
6810 { "transformFeedbackVaryings", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_transformFeedbackVaryings), (intptr_t) (3) } },
6811 { "getTransformFeedbackVarying", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_getTransformFeedbackVarying), (intptr_t) (2) } },
6812 { "pauseTransformFeedback", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_pauseTransformFeedback), (intptr_t) (0) } },
6813 { "resumeTransformFeedback", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_resumeTransformFeedback), (intptr_t) (0) } },
6814 { "bindBufferBase", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_bindBufferBase), (intptr_t) (3) } },
6815 { "bindBufferRange", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_bindBufferRange), (intptr_t) (5) } },
6816 { "getIndexedParameter", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_getIndexedParameter), (intptr_t) (2) } },
6817 { "getUniformIndices", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_getUniformIndices), (intptr_t) (2) } },
6818 { "getActiveUniforms", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_getActiveUniforms), (intptr_t) (3) } },
6819 { "getUniformBlockIndex", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_getUniformBlockIndex), (intptr_t) (2) } },
6820 { "getActiveUniformBlockParameter", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_getActiveUniformBlockParameter), (intptr_t) (3) } },
6821 { "getActiveUniformBlockName", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_getActiveUniformBlockName), (intptr_t) (2) } },
6822 { "uniformBlockBinding", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_uniformBlockBinding), (intptr_t) (3) } },
6823 { "createVertexArray", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_createVertexArray), (intptr_t) (0) } },
6824 { "deleteVertexArray", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_deleteVertexArray), (intptr_t) (1) } },
6825 { "isVertexArray", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_isVertexArray), (intptr_t) (1) } },
6826 { "bindVertexArray", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_bindVertexArray), (intptr_t) (1) } },
6827 { "texImage2D", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_texImage2D), (intptr_t) (6) } },
6828 { "texSubImage2D", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_texSubImage2D), (intptr_t) (7) } },
6829 { "compressedTexImage2D", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_compressedTexImage2D), (intptr_t) (7) } },
6830 { "compressedTexSubImage2D", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_compressedTexSubImage2D), (intptr_t) (8) } },
6831 { "uniform1fv", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_uniform1fv), (intptr_t) (2) } },
6832 { "uniform2fv", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_uniform2fv), (intptr_t) (2) } },
6833 { "uniform3fv", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_uniform3fv), (intptr_t) (2) } },
6834 { "uniform4fv", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_uniform4fv), (intptr_t) (2) } },
6835 { "uniform1iv", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_uniform1iv), (intptr_t) (2) } },
6836 { "uniform2iv", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_uniform2iv), (intptr_t) (2) } },
6837 { "uniform3iv", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_uniform3iv), (intptr_t) (2) } },
6838 { "uniform4iv", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_uniform4iv), (intptr_t) (2) } },
6839 { "uniformMatrix2fv", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_uniformMatrix2fv), (intptr_t) (3) } },
6840 { "uniformMatrix3fv", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_uniformMatrix3fv), (intptr_t) (3) } },
6841 { "uniformMatrix4fv", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_uniformMatrix4fv), (intptr_t) (3) } },
6842 { "readPixels", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_readPixels), (intptr_t) (7) } },
6843#if ENABLE(WEBGL)
6844 { "activeTexture", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_activeTexture), (intptr_t) (1) } },
6845#else
6846 { 0, 0, NoIntrinsic, { 0, 0 } },
6847#endif
6848#if ENABLE(WEBGL)
6849 { "attachShader", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_attachShader), (intptr_t) (2) } },
6850#else
6851 { 0, 0, NoIntrinsic, { 0, 0 } },
6852#endif
6853#if ENABLE(WEBGL)
6854 { "bindAttribLocation", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_bindAttribLocation), (intptr_t) (3) } },
6855#else
6856 { 0, 0, NoIntrinsic, { 0, 0 } },
6857#endif
6858#if ENABLE(WEBGL)
6859 { "bindBuffer", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_bindBuffer), (intptr_t) (2) } },
6860#else
6861 { 0, 0, NoIntrinsic, { 0, 0 } },
6862#endif
6863#if ENABLE(WEBGL)
6864 { "bindFramebuffer", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_bindFramebuffer), (intptr_t) (2) } },
6865#else
6866 { 0, 0, NoIntrinsic, { 0, 0 } },
6867#endif
6868#if ENABLE(WEBGL)
6869 { "bindRenderbuffer", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_bindRenderbuffer), (intptr_t) (2) } },
6870#else
6871 { 0, 0, NoIntrinsic, { 0, 0 } },
6872#endif
6873#if ENABLE(WEBGL)
6874 { "bindTexture", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_bindTexture), (intptr_t) (2) } },
6875#else
6876 { 0, 0, NoIntrinsic, { 0, 0 } },
6877#endif
6878#if ENABLE(WEBGL)
6879 { "blendColor", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_blendColor), (intptr_t) (4) } },
6880#else
6881 { 0, 0, NoIntrinsic, { 0, 0 } },
6882#endif
6883#if ENABLE(WEBGL)
6884 { "blendEquation", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_blendEquation), (intptr_t) (1) } },
6885#else
6886 { 0, 0, NoIntrinsic, { 0, 0 } },
6887#endif
6888#if ENABLE(WEBGL)
6889 { "blendEquationSeparate", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_blendEquationSeparate), (intptr_t) (2) } },
6890#else
6891 { 0, 0, NoIntrinsic, { 0, 0 } },
6892#endif
6893#if ENABLE(WEBGL)
6894 { "blendFunc", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_blendFunc), (intptr_t) (2) } },
6895#else
6896 { 0, 0, NoIntrinsic, { 0, 0 } },
6897#endif
6898#if ENABLE(WEBGL)
6899 { "blendFuncSeparate", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_blendFuncSeparate), (intptr_t) (4) } },
6900#else
6901 { 0, 0, NoIntrinsic, { 0, 0 } },
6902#endif
6903#if ENABLE(WEBGL)
6904 { "checkFramebufferStatus", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_checkFramebufferStatus), (intptr_t) (1) } },
6905#else
6906 { 0, 0, NoIntrinsic, { 0, 0 } },
6907#endif
6908#if ENABLE(WEBGL)
6909 { "clear", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_clear), (intptr_t) (1) } },
6910#else
6911 { 0, 0, NoIntrinsic, { 0, 0 } },
6912#endif
6913#if ENABLE(WEBGL)
6914 { "clearColor", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_clearColor), (intptr_t) (4) } },
6915#else
6916 { 0, 0, NoIntrinsic, { 0, 0 } },
6917#endif
6918#if ENABLE(WEBGL)
6919 { "clearDepth", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_clearDepth), (intptr_t) (1) } },
6920#else
6921 { 0, 0, NoIntrinsic, { 0, 0 } },
6922#endif
6923#if ENABLE(WEBGL)
6924 { "clearStencil", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_clearStencil), (intptr_t) (1) } },
6925#else
6926 { 0, 0, NoIntrinsic, { 0, 0 } },
6927#endif
6928#if ENABLE(WEBGL)
6929 { "colorMask", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_colorMask), (intptr_t) (4) } },
6930#else
6931 { 0, 0, NoIntrinsic, { 0, 0 } },
6932#endif
6933#if ENABLE(WEBGL)
6934 { "compileShader", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_compileShader), (intptr_t) (1) } },
6935#else
6936 { 0, 0, NoIntrinsic, { 0, 0 } },
6937#endif
6938#if ENABLE(WEBGL)
6939 { "copyTexImage2D", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_copyTexImage2D), (intptr_t) (8) } },
6940#else
6941 { 0, 0, NoIntrinsic, { 0, 0 } },
6942#endif
6943#if ENABLE(WEBGL)
6944 { "copyTexSubImage2D", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_copyTexSubImage2D), (intptr_t) (8) } },
6945#else
6946 { 0, 0, NoIntrinsic, { 0, 0 } },
6947#endif
6948#if ENABLE(WEBGL)
6949 { "createBuffer", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_createBuffer), (intptr_t) (0) } },
6950#else
6951 { 0, 0, NoIntrinsic, { 0, 0 } },
6952#endif
6953#if ENABLE(WEBGL)
6954 { "createFramebuffer", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_createFramebuffer), (intptr_t) (0) } },
6955#else
6956 { 0, 0, NoIntrinsic, { 0, 0 } },
6957#endif
6958#if ENABLE(WEBGL)
6959 { "createProgram", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_createProgram), (intptr_t) (0) } },
6960#else
6961 { 0, 0, NoIntrinsic, { 0, 0 } },
6962#endif
6963#if ENABLE(WEBGL)
6964 { "createRenderbuffer", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_createRenderbuffer), (intptr_t) (0) } },
6965#else
6966 { 0, 0, NoIntrinsic, { 0, 0 } },
6967#endif
6968#if ENABLE(WEBGL)
6969 { "createShader", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_createShader), (intptr_t) (1) } },
6970#else
6971 { 0, 0, NoIntrinsic, { 0, 0 } },
6972#endif
6973#if ENABLE(WEBGL)
6974 { "createTexture", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_createTexture), (intptr_t) (0) } },
6975#else
6976 { 0, 0, NoIntrinsic, { 0, 0 } },
6977#endif
6978#if ENABLE(WEBGL)
6979 { "cullFace", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_cullFace), (intptr_t) (1) } },
6980#else
6981 { 0, 0, NoIntrinsic, { 0, 0 } },
6982#endif
6983#if ENABLE(WEBGL)
6984 { "deleteBuffer", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_deleteBuffer), (intptr_t) (1) } },
6985#else
6986 { 0, 0, NoIntrinsic, { 0, 0 } },
6987#endif
6988#if ENABLE(WEBGL)
6989 { "deleteFramebuffer", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_deleteFramebuffer), (intptr_t) (1) } },
6990#else
6991 { 0, 0, NoIntrinsic, { 0, 0 } },
6992#endif
6993#if ENABLE(WEBGL)
6994 { "deleteProgram", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_deleteProgram), (intptr_t) (1) } },
6995#else
6996 { 0, 0, NoIntrinsic, { 0, 0 } },
6997#endif
6998#if ENABLE(WEBGL)
6999 { "deleteRenderbuffer", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_deleteRenderbuffer), (intptr_t) (1) } },
7000#else
7001 { 0, 0, NoIntrinsic, { 0, 0 } },
7002#endif
7003#if ENABLE(WEBGL)
7004 { "deleteShader", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_deleteShader), (intptr_t) (1) } },
7005#else
7006 { 0, 0, NoIntrinsic, { 0, 0 } },
7007#endif
7008#if ENABLE(WEBGL)
7009 { "deleteTexture", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_deleteTexture), (intptr_t) (1) } },
7010#else
7011 { 0, 0, NoIntrinsic, { 0, 0 } },
7012#endif
7013#if ENABLE(WEBGL)
7014 { "depthFunc", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_depthFunc), (intptr_t) (1) } },
7015#else
7016 { 0, 0, NoIntrinsic, { 0, 0 } },
7017#endif
7018#if ENABLE(WEBGL)
7019 { "depthMask", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_depthMask), (intptr_t) (1) } },
7020#else
7021 { 0, 0, NoIntrinsic, { 0, 0 } },
7022#endif
7023#if ENABLE(WEBGL)
7024 { "depthRange", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_depthRange), (intptr_t) (2) } },
7025#else
7026 { 0, 0, NoIntrinsic, { 0, 0 } },
7027#endif
7028#if ENABLE(WEBGL)
7029 { "detachShader", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_detachShader), (intptr_t) (2) } },
7030#else
7031 { 0, 0, NoIntrinsic, { 0, 0 } },
7032#endif
7033#if ENABLE(WEBGL)
7034 { "disable", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_disable), (intptr_t) (1) } },
7035#else
7036 { 0, 0, NoIntrinsic, { 0, 0 } },
7037#endif
7038#if ENABLE(WEBGL)
7039 { "disableVertexAttribArray", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_disableVertexAttribArray), (intptr_t) (1) } },
7040#else
7041 { 0, 0, NoIntrinsic, { 0, 0 } },
7042#endif
7043#if ENABLE(WEBGL)
7044 { "drawArrays", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_drawArrays), (intptr_t) (3) } },
7045#else
7046 { 0, 0, NoIntrinsic, { 0, 0 } },
7047#endif
7048#if ENABLE(WEBGL)
7049 { "drawElements", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_drawElements), (intptr_t) (4) } },
7050#else
7051 { 0, 0, NoIntrinsic, { 0, 0 } },
7052#endif
7053#if ENABLE(WEBGL)
7054 { "enable", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_enable), (intptr_t) (1) } },
7055#else
7056 { 0, 0, NoIntrinsic, { 0, 0 } },
7057#endif
7058#if ENABLE(WEBGL)
7059 { "enableVertexAttribArray", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_enableVertexAttribArray), (intptr_t) (1) } },
7060#else
7061 { 0, 0, NoIntrinsic, { 0, 0 } },
7062#endif
7063#if ENABLE(WEBGL)
7064 { "finish", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_finish), (intptr_t) (0) } },
7065#else
7066 { 0, 0, NoIntrinsic, { 0, 0 } },
7067#endif
7068#if ENABLE(WEBGL)
7069 { "flush", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_flush), (intptr_t) (0) } },
7070#else
7071 { 0, 0, NoIntrinsic, { 0, 0 } },
7072#endif
7073#if ENABLE(WEBGL)
7074 { "framebufferRenderbuffer", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_framebufferRenderbuffer), (intptr_t) (4) } },
7075#else
7076 { 0, 0, NoIntrinsic, { 0, 0 } },
7077#endif
7078#if ENABLE(WEBGL)
7079 { "framebufferTexture2D", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_framebufferTexture2D), (intptr_t) (5) } },
7080#else
7081 { 0, 0, NoIntrinsic, { 0, 0 } },
7082#endif
7083#if ENABLE(WEBGL)
7084 { "frontFace", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_frontFace), (intptr_t) (1) } },
7085#else
7086 { 0, 0, NoIntrinsic, { 0, 0 } },
7087#endif
7088#if ENABLE(WEBGL)
7089 { "generateMipmap", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_generateMipmap), (intptr_t) (1) } },
7090#else
7091 { 0, 0, NoIntrinsic, { 0, 0 } },
7092#endif
7093#if ENABLE(WEBGL)
7094 { "getActiveAttrib", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_getActiveAttrib), (intptr_t) (2) } },
7095#else
7096 { 0, 0, NoIntrinsic, { 0, 0 } },
7097#endif
7098#if ENABLE(WEBGL)
7099 { "getActiveUniform", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_getActiveUniform), (intptr_t) (2) } },
7100#else
7101 { 0, 0, NoIntrinsic, { 0, 0 } },
7102#endif
7103#if ENABLE(WEBGL)
7104 { "getAttachedShaders", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_getAttachedShaders), (intptr_t) (1) } },
7105#else
7106 { 0, 0, NoIntrinsic, { 0, 0 } },
7107#endif
7108#if ENABLE(WEBGL)
7109 { "getAttribLocation", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_getAttribLocation), (intptr_t) (2) } },
7110#else
7111 { 0, 0, NoIntrinsic, { 0, 0 } },
7112#endif
7113#if ENABLE(WEBGL)
7114 { "getBufferParameter", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_getBufferParameter), (intptr_t) (2) } },
7115#else
7116 { 0, 0, NoIntrinsic, { 0, 0 } },
7117#endif
7118#if ENABLE(WEBGL)
7119 { "getContextAttributes", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_getContextAttributes), (intptr_t) (0) } },
7120#else
7121 { 0, 0, NoIntrinsic, { 0, 0 } },
7122#endif
7123#if ENABLE(WEBGL)
7124 { "getError", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_getError), (intptr_t) (0) } },
7125#else
7126 { 0, 0, NoIntrinsic, { 0, 0 } },
7127#endif
7128#if ENABLE(WEBGL)
7129 { "getSupportedExtensions", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_getSupportedExtensions), (intptr_t) (0) } },
7130#else
7131 { 0, 0, NoIntrinsic, { 0, 0 } },
7132#endif
7133#if ENABLE(WEBGL)
7134 { "getExtension", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_getExtension), (intptr_t) (1) } },
7135#else
7136 { 0, 0, NoIntrinsic, { 0, 0 } },
7137#endif
7138#if ENABLE(WEBGL)
7139 { "getFramebufferAttachmentParameter", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_getFramebufferAttachmentParameter), (intptr_t) (3) } },
7140#else
7141 { 0, 0, NoIntrinsic, { 0, 0 } },
7142#endif
7143#if ENABLE(WEBGL)
7144 { "getParameter", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_getParameter), (intptr_t) (1) } },
7145#else
7146 { 0, 0, NoIntrinsic, { 0, 0 } },
7147#endif
7148#if ENABLE(WEBGL)
7149 { "getProgramParameter", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_getProgramParameter), (intptr_t) (2) } },
7150#else
7151 { 0, 0, NoIntrinsic, { 0, 0 } },
7152#endif
7153#if ENABLE(WEBGL)
7154 { "getProgramInfoLog", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_getProgramInfoLog), (intptr_t) (1) } },
7155#else
7156 { 0, 0, NoIntrinsic, { 0, 0 } },
7157#endif
7158#if ENABLE(WEBGL)
7159 { "getRenderbufferParameter", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_getRenderbufferParameter), (intptr_t) (2) } },
7160#else
7161 { 0, 0, NoIntrinsic, { 0, 0 } },
7162#endif
7163#if ENABLE(WEBGL)
7164 { "getShaderParameter", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_getShaderParameter), (intptr_t) (2) } },
7165#else
7166 { 0, 0, NoIntrinsic, { 0, 0 } },
7167#endif
7168#if ENABLE(WEBGL)
7169 { "getShaderInfoLog", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_getShaderInfoLog), (intptr_t) (1) } },
7170#else
7171 { 0, 0, NoIntrinsic, { 0, 0 } },
7172#endif
7173#if ENABLE(WEBGL)
7174 { "getShaderPrecisionFormat", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_getShaderPrecisionFormat), (intptr_t) (2) } },
7175#else
7176 { 0, 0, NoIntrinsic, { 0, 0 } },
7177#endif
7178#if ENABLE(WEBGL)
7179 { "getShaderSource", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_getShaderSource), (intptr_t) (1) } },
7180#else
7181 { 0, 0, NoIntrinsic, { 0, 0 } },
7182#endif
7183#if ENABLE(WEBGL)
7184 { "getTexParameter", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_getTexParameter), (intptr_t) (2) } },
7185#else
7186 { 0, 0, NoIntrinsic, { 0, 0 } },
7187#endif
7188#if ENABLE(WEBGL)
7189 { "getUniform", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_getUniform), (intptr_t) (2) } },
7190#else
7191 { 0, 0, NoIntrinsic, { 0, 0 } },
7192#endif
7193#if ENABLE(WEBGL)
7194 { "getUniformLocation", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_getUniformLocation), (intptr_t) (2) } },
7195#else
7196 { 0, 0, NoIntrinsic, { 0, 0 } },
7197#endif
7198#if ENABLE(WEBGL)
7199 { "getVertexAttrib", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_getVertexAttrib), (intptr_t) (2) } },
7200#else
7201 { 0, 0, NoIntrinsic, { 0, 0 } },
7202#endif
7203#if ENABLE(WEBGL)
7204 { "getVertexAttribOffset", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_getVertexAttribOffset), (intptr_t) (2) } },
7205#else
7206 { 0, 0, NoIntrinsic, { 0, 0 } },
7207#endif
7208#if ENABLE(WEBGL)
7209 { "hint", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_hint), (intptr_t) (2) } },
7210#else
7211 { 0, 0, NoIntrinsic, { 0, 0 } },
7212#endif
7213#if ENABLE(WEBGL)
7214 { "isBuffer", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_isBuffer), (intptr_t) (1) } },
7215#else
7216 { 0, 0, NoIntrinsic, { 0, 0 } },
7217#endif
7218#if ENABLE(WEBGL)
7219 { "isContextLost", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_isContextLost), (intptr_t) (0) } },
7220#else
7221 { 0, 0, NoIntrinsic, { 0, 0 } },
7222#endif
7223#if ENABLE(WEBGL)
7224 { "isEnabled", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_isEnabled), (intptr_t) (1) } },
7225#else
7226 { 0, 0, NoIntrinsic, { 0, 0 } },
7227#endif
7228#if ENABLE(WEBGL)
7229 { "isFramebuffer", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_isFramebuffer), (intptr_t) (1) } },
7230#else
7231 { 0, 0, NoIntrinsic, { 0, 0 } },
7232#endif
7233#if ENABLE(WEBGL)
7234 { "isProgram", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_isProgram), (intptr_t) (1) } },
7235#else
7236 { 0, 0, NoIntrinsic, { 0, 0 } },
7237#endif
7238#if ENABLE(WEBGL)
7239 { "isRenderbuffer", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_isRenderbuffer), (intptr_t) (1) } },
7240#else
7241 { 0, 0, NoIntrinsic, { 0, 0 } },
7242#endif
7243#if ENABLE(WEBGL)
7244 { "isShader", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_isShader), (intptr_t) (1) } },
7245#else
7246 { 0, 0, NoIntrinsic, { 0, 0 } },
7247#endif
7248#if ENABLE(WEBGL)
7249 { "isTexture", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_isTexture), (intptr_t) (1) } },
7250#else
7251 { 0, 0, NoIntrinsic, { 0, 0 } },
7252#endif
7253#if ENABLE(WEBGL)
7254 { "lineWidth", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_lineWidth), (intptr_t) (1) } },
7255#else
7256 { 0, 0, NoIntrinsic, { 0, 0 } },
7257#endif
7258#if ENABLE(WEBGL)
7259 { "linkProgram", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_linkProgram), (intptr_t) (1) } },
7260#else
7261 { 0, 0, NoIntrinsic, { 0, 0 } },
7262#endif
7263#if ENABLE(WEBGL) && ENABLE(WEBXR)
7264 { "makeXRCompatible", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_makeXRCompatible), (intptr_t) (0) } },
7265#else
7266 { 0, 0, NoIntrinsic, { 0, 0 } },
7267#endif
7268#if ENABLE(WEBGL)
7269 { "pixelStorei", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_pixelStorei), (intptr_t) (2) } },
7270#else
7271 { 0, 0, NoIntrinsic, { 0, 0 } },
7272#endif
7273#if ENABLE(WEBGL)
7274 { "polygonOffset", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_polygonOffset), (intptr_t) (2) } },
7275#else
7276 { 0, 0, NoIntrinsic, { 0, 0 } },
7277#endif
7278#if ENABLE(WEBGL)
7279 { "renderbufferStorage", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_renderbufferStorage), (intptr_t) (4) } },
7280#else
7281 { 0, 0, NoIntrinsic, { 0, 0 } },
7282#endif
7283#if ENABLE(WEBGL)
7284 { "sampleCoverage", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_sampleCoverage), (intptr_t) (2) } },
7285#else
7286 { 0, 0, NoIntrinsic, { 0, 0 } },
7287#endif
7288#if ENABLE(WEBGL)
7289 { "scissor", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_scissor), (intptr_t) (4) } },
7290#else
7291 { 0, 0, NoIntrinsic, { 0, 0 } },
7292#endif
7293#if ENABLE(WEBGL)
7294 { "shaderSource", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_shaderSource), (intptr_t) (2) } },
7295#else
7296 { 0, 0, NoIntrinsic, { 0, 0 } },
7297#endif
7298#if ENABLE(WEBGL)
7299 { "stencilFunc", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_stencilFunc), (intptr_t) (3) } },
7300#else
7301 { 0, 0, NoIntrinsic, { 0, 0 } },
7302#endif
7303#if ENABLE(WEBGL)
7304 { "stencilFuncSeparate", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_stencilFuncSeparate), (intptr_t) (4) } },
7305#else
7306 { 0, 0, NoIntrinsic, { 0, 0 } },
7307#endif
7308#if ENABLE(WEBGL)
7309 { "stencilMask", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_stencilMask), (intptr_t) (1) } },
7310#else
7311 { 0, 0, NoIntrinsic, { 0, 0 } },
7312#endif
7313#if ENABLE(WEBGL)
7314 { "stencilMaskSeparate", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_stencilMaskSeparate), (intptr_t) (2) } },
7315#else
7316 { 0, 0, NoIntrinsic, { 0, 0 } },
7317#endif
7318#if ENABLE(WEBGL)
7319 { "stencilOp", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_stencilOp), (intptr_t) (3) } },
7320#else
7321 { 0, 0, NoIntrinsic, { 0, 0 } },
7322#endif
7323#if ENABLE(WEBGL)
7324 { "stencilOpSeparate", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_stencilOpSeparate), (intptr_t) (4) } },
7325#else
7326 { 0, 0, NoIntrinsic, { 0, 0 } },
7327#endif
7328#if ENABLE(WEBGL)
7329 { "texParameterf", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_texParameterf), (intptr_t) (3) } },
7330#else
7331 { 0, 0, NoIntrinsic, { 0, 0 } },
7332#endif
7333#if ENABLE(WEBGL)
7334 { "texParameteri", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_texParameteri), (intptr_t) (3) } },
7335#else
7336 { 0, 0, NoIntrinsic, { 0, 0 } },
7337#endif
7338#if ENABLE(WEBGL)
7339 { "uniform1f", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_uniform1f), (intptr_t) (2) } },
7340#else
7341 { 0, 0, NoIntrinsic, { 0, 0 } },
7342#endif
7343#if ENABLE(WEBGL)
7344 { "uniform2f", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_uniform2f), (intptr_t) (3) } },
7345#else
7346 { 0, 0, NoIntrinsic, { 0, 0 } },
7347#endif
7348#if ENABLE(WEBGL)
7349 { "uniform3f", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_uniform3f), (intptr_t) (4) } },
7350#else
7351 { 0, 0, NoIntrinsic, { 0, 0 } },
7352#endif
7353#if ENABLE(WEBGL)
7354 { "uniform4f", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_uniform4f), (intptr_t) (5) } },
7355#else
7356 { 0, 0, NoIntrinsic, { 0, 0 } },
7357#endif
7358#if ENABLE(WEBGL)
7359 { "uniform1i", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_uniform1i), (intptr_t) (2) } },
7360#else
7361 { 0, 0, NoIntrinsic, { 0, 0 } },
7362#endif
7363#if ENABLE(WEBGL)
7364 { "uniform2i", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_uniform2i), (intptr_t) (3) } },
7365#else
7366 { 0, 0, NoIntrinsic, { 0, 0 } },
7367#endif
7368#if ENABLE(WEBGL)
7369 { "uniform3i", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_uniform3i), (intptr_t) (4) } },
7370#else
7371 { 0, 0, NoIntrinsic, { 0, 0 } },
7372#endif
7373#if ENABLE(WEBGL)
7374 { "uniform4i", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_uniform4i), (intptr_t) (5) } },
7375#else
7376 { 0, 0, NoIntrinsic, { 0, 0 } },
7377#endif
7378#if ENABLE(WEBGL)
7379 { "useProgram", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_useProgram), (intptr_t) (1) } },
7380#else
7381 { 0, 0, NoIntrinsic, { 0, 0 } },
7382#endif
7383#if ENABLE(WEBGL)
7384 { "validateProgram", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_validateProgram), (intptr_t) (1) } },
7385#else
7386 { 0, 0, NoIntrinsic, { 0, 0 } },
7387#endif
7388#if ENABLE(WEBGL)
7389 { "vertexAttrib1f", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_vertexAttrib1f), (intptr_t) (2) } },
7390#else
7391 { 0, 0, NoIntrinsic, { 0, 0 } },
7392#endif
7393#if ENABLE(WEBGL)
7394 { "vertexAttrib2f", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_vertexAttrib2f), (intptr_t) (3) } },
7395#else
7396 { 0, 0, NoIntrinsic, { 0, 0 } },
7397#endif
7398#if ENABLE(WEBGL)
7399 { "vertexAttrib3f", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_vertexAttrib3f), (intptr_t) (4) } },
7400#else
7401 { 0, 0, NoIntrinsic, { 0, 0 } },
7402#endif
7403#if ENABLE(WEBGL)
7404 { "vertexAttrib4f", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_vertexAttrib4f), (intptr_t) (5) } },
7405#else
7406 { 0, 0, NoIntrinsic, { 0, 0 } },
7407#endif
7408#if ENABLE(WEBGL)
7409 { "vertexAttrib1fv", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_vertexAttrib1fv), (intptr_t) (2) } },
7410#else
7411 { 0, 0, NoIntrinsic, { 0, 0 } },
7412#endif
7413#if ENABLE(WEBGL)
7414 { "vertexAttrib2fv", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_vertexAttrib2fv), (intptr_t) (2) } },
7415#else
7416 { 0, 0, NoIntrinsic, { 0, 0 } },
7417#endif
7418#if ENABLE(WEBGL)
7419 { "vertexAttrib3fv", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_vertexAttrib3fv), (intptr_t) (2) } },
7420#else
7421 { 0, 0, NoIntrinsic, { 0, 0 } },
7422#endif
7423#if ENABLE(WEBGL)
7424 { "vertexAttrib4fv", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_vertexAttrib4fv), (intptr_t) (2) } },
7425#else
7426 { 0, 0, NoIntrinsic, { 0, 0 } },
7427#endif
7428#if ENABLE(WEBGL)
7429 { "vertexAttribPointer", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_vertexAttribPointer), (intptr_t) (6) } },
7430#else
7431 { 0, 0, NoIntrinsic, { 0, 0 } },
7432#endif
7433#if ENABLE(WEBGL)
7434 { "viewport", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebGL2RenderingContextPrototypeFunction_viewport), (intptr_t) (4) } },
7435#else
7436 { 0, 0, NoIntrinsic, { 0, 0 } },
7437#endif
7438 { "READ_BUFFER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0C02) } },
7439 { "UNPACK_ROW_LENGTH", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0CF2) } },
7440 { "UNPACK_SKIP_ROWS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0CF3) } },
7441 { "UNPACK_SKIP_PIXELS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0CF4) } },
7442 { "PACK_ROW_LENGTH", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0D02) } },
7443 { "PACK_SKIP_ROWS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0D03) } },
7444 { "PACK_SKIP_PIXELS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0D04) } },
7445 { "COLOR", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1800) } },
7446 { "DEPTH", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1801) } },
7447 { "STENCIL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1802) } },
7448 { "RED", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1903) } },
7449 { "RGB8", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8051) } },
7450 { "RGBA8", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8058) } },
7451 { "RGB10_A2", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8059) } },
7452 { "TEXTURE_BINDING_3D", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x806A) } },
7453 { "UNPACK_SKIP_IMAGES", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x806D) } },
7454 { "UNPACK_IMAGE_HEIGHT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x806E) } },
7455 { "TEXTURE_3D", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x806F) } },
7456 { "TEXTURE_WRAP_R", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8072) } },
7457 { "MAX_3D_TEXTURE_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8073) } },
7458 { "UNSIGNED_INT_2_10_10_10_REV", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8368) } },
7459 { "MAX_ELEMENTS_VERTICES", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x80E8) } },
7460 { "MAX_ELEMENTS_INDICES", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x80E9) } },
7461 { "TEXTURE_MIN_LOD", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x813A) } },
7462 { "TEXTURE_MAX_LOD", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x813B) } },
7463 { "TEXTURE_BASE_LEVEL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x813C) } },
7464 { "TEXTURE_MAX_LEVEL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x813D) } },
7465 { "MIN", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8007) } },
7466 { "MAX", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8008) } },
7467 { "DEPTH_COMPONENT24", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x81A6) } },
7468 { "MAX_TEXTURE_LOD_BIAS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84FD) } },
7469 { "TEXTURE_COMPARE_MODE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x884C) } },
7470 { "TEXTURE_COMPARE_FUNC", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x884D) } },
7471 { "CURRENT_QUERY", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8865) } },
7472 { "QUERY_RESULT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8866) } },
7473 { "QUERY_RESULT_AVAILABLE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8867) } },
7474 { "STREAM_READ", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x88E1) } },
7475 { "STREAM_COPY", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x88E2) } },
7476 { "STATIC_READ", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x88E5) } },
7477 { "STATIC_COPY", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x88E6) } },
7478 { "DYNAMIC_READ", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x88E9) } },
7479 { "DYNAMIC_COPY", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x88EA) } },
7480 { "MAX_DRAW_BUFFERS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8824) } },
7481 { "DRAW_BUFFER0", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8825) } },
7482 { "DRAW_BUFFER1", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8826) } },
7483 { "DRAW_BUFFER2", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8827) } },
7484 { "DRAW_BUFFER3", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8828) } },
7485 { "DRAW_BUFFER4", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8829) } },
7486 { "DRAW_BUFFER5", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x882A) } },
7487 { "DRAW_BUFFER6", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x882B) } },
7488 { "DRAW_BUFFER7", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x882C) } },
7489 { "DRAW_BUFFER8", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x882D) } },
7490 { "DRAW_BUFFER9", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x882E) } },
7491 { "DRAW_BUFFER10", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x882F) } },
7492 { "DRAW_BUFFER11", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8830) } },
7493 { "DRAW_BUFFER12", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8831) } },
7494 { "DRAW_BUFFER13", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8832) } },
7495 { "DRAW_BUFFER14", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8833) } },
7496 { "DRAW_BUFFER15", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8834) } },
7497 { "MAX_FRAGMENT_UNIFORM_COMPONENTS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B49) } },
7498 { "MAX_VERTEX_UNIFORM_COMPONENTS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B4A) } },
7499 { "SAMPLER_3D", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B5F) } },
7500 { "SAMPLER_2D_SHADOW", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B62) } },
7501 { "FRAGMENT_SHADER_DERIVATIVE_HINT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B8B) } },
7502 { "PIXEL_PACK_BUFFER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x88EB) } },
7503 { "PIXEL_UNPACK_BUFFER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x88EC) } },
7504 { "PIXEL_PACK_BUFFER_BINDING", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x88ED) } },
7505 { "PIXEL_UNPACK_BUFFER_BINDING", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x88EF) } },
7506 { "FLOAT_MAT2x3", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B65) } },
7507 { "FLOAT_MAT2x4", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B66) } },
7508 { "FLOAT_MAT3x2", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B67) } },
7509 { "FLOAT_MAT3x4", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B68) } },
7510 { "FLOAT_MAT4x2", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B69) } },
7511 { "FLOAT_MAT4x3", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B6A) } },
7512 { "SRGB", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C40) } },
7513 { "SRGB8", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C41) } },
7514 { "SRGB8_ALPHA8", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C43) } },
7515 { "COMPARE_REF_TO_TEXTURE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x884E) } },
7516 { "RGBA32F", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8814) } },
7517 { "RGB32F", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8815) } },
7518 { "RGBA16F", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x881A) } },
7519 { "RGB16F", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x881B) } },
7520 { "VERTEX_ATTRIB_ARRAY_INTEGER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x88FD) } },
7521 { "MAX_ARRAY_TEXTURE_LAYERS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x88FF) } },
7522 { "MIN_PROGRAM_TEXEL_OFFSET", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8904) } },
7523 { "MAX_PROGRAM_TEXEL_OFFSET", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8905) } },
7524 { "MAX_VARYING_COMPONENTS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B4B) } },
7525 { "TEXTURE_2D_ARRAY", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C1A) } },
7526 { "TEXTURE_BINDING_2D_ARRAY", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C1D) } },
7527 { "R11F_G11F_B10F", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C3A) } },
7528 { "UNSIGNED_INT_10F_11F_11F_REV", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C3B) } },
7529 { "RGB9_E5", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C3D) } },
7530 { "UNSIGNED_INT_5_9_9_9_REV", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C3E) } },
7531 { "TRANSFORM_FEEDBACK_BUFFER_MODE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C7F) } },
7532 { "MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C80) } },
7533 { "TRANSFORM_FEEDBACK_VARYINGS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C83) } },
7534 { "TRANSFORM_FEEDBACK_BUFFER_START", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C84) } },
7535 { "TRANSFORM_FEEDBACK_BUFFER_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C85) } },
7536 { "TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C88) } },
7537 { "RASTERIZER_DISCARD", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C89) } },
7538 { "MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C8A) } },
7539 { "MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C8B) } },
7540 { "INTERLEAVED_ATTRIBS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C8C) } },
7541 { "SEPARATE_ATTRIBS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C8D) } },
7542 { "TRANSFORM_FEEDBACK_BUFFER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C8E) } },
7543 { "TRANSFORM_FEEDBACK_BUFFER_BINDING", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C8F) } },
7544 { "RGBA32UI", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D70) } },
7545 { "RGB32UI", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D71) } },
7546 { "RGBA16UI", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D76) } },
7547 { "RGB16UI", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D77) } },
7548 { "RGBA8UI", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D7C) } },
7549 { "RGB8UI", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D7D) } },
7550 { "RGBA32I", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D82) } },
7551 { "RGB32I", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D83) } },
7552 { "RGBA16I", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D88) } },
7553 { "RGB16I", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D89) } },
7554 { "RGBA8I", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D8E) } },
7555 { "RGB8I", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D8F) } },
7556 { "RED_INTEGER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D94) } },
7557 { "RGB_INTEGER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D98) } },
7558 { "RGBA_INTEGER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D99) } },
7559 { "SAMPLER_2D_ARRAY", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DC1) } },
7560 { "SAMPLER_2D_ARRAY_SHADOW", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DC4) } },
7561 { "SAMPLER_CUBE_SHADOW", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DC5) } },
7562 { "UNSIGNED_INT_VEC2", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DC6) } },
7563 { "UNSIGNED_INT_VEC3", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DC7) } },
7564 { "UNSIGNED_INT_VEC4", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DC8) } },
7565 { "INT_SAMPLER_2D", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DCA) } },
7566 { "INT_SAMPLER_3D", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DCB) } },
7567 { "INT_SAMPLER_CUBE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DCC) } },
7568 { "INT_SAMPLER_2D_ARRAY", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DCF) } },
7569 { "UNSIGNED_INT_SAMPLER_2D", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DD2) } },
7570 { "UNSIGNED_INT_SAMPLER_3D", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DD3) } },
7571 { "UNSIGNED_INT_SAMPLER_CUBE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DD4) } },
7572 { "UNSIGNED_INT_SAMPLER_2D_ARRAY", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DD7) } },
7573 { "DEPTH_COMPONENT32F", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CAC) } },
7574 { "DEPTH32F_STENCIL8", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CAD) } },
7575 { "FLOAT_32_UNSIGNED_INT_24_8_REV", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DAD) } },
7576 { "FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8210) } },
7577 { "FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8211) } },
7578 { "FRAMEBUFFER_ATTACHMENT_RED_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8212) } },
7579 { "FRAMEBUFFER_ATTACHMENT_GREEN_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8213) } },
7580 { "FRAMEBUFFER_ATTACHMENT_BLUE_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8214) } },
7581 { "FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8215) } },
7582 { "FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8216) } },
7583 { "FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8217) } },
7584 { "FRAMEBUFFER_DEFAULT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8218) } },
7585#if ENABLE(WEBGL)
7586 { "DEPTH_STENCIL_ATTACHMENT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x821A) } },
7587#else
7588 { 0, 0, NoIntrinsic, { 0, 0 } },
7589#endif
7590#if ENABLE(WEBGL)
7591 { "DEPTH_STENCIL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84F9) } },
7592#else
7593 { 0, 0, NoIntrinsic, { 0, 0 } },
7594#endif
7595 { "UNSIGNED_INT_24_8", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84FA) } },
7596 { "DEPTH24_STENCIL8", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x88F0) } },
7597 { "UNSIGNED_NORMALIZED", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C17) } },
7598 { "DRAW_FRAMEBUFFER_BINDING", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CA6) } },
7599 { "READ_FRAMEBUFFER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CA8) } },
7600 { "DRAW_FRAMEBUFFER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CA9) } },
7601 { "READ_FRAMEBUFFER_BINDING", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CAA) } },
7602 { "RENDERBUFFER_SAMPLES", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CAB) } },
7603 { "FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CD4) } },
7604 { "MAX_COLOR_ATTACHMENTS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CDF) } },
7605 { "COLOR_ATTACHMENT1", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CE1) } },
7606 { "COLOR_ATTACHMENT2", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CE2) } },
7607 { "COLOR_ATTACHMENT3", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CE3) } },
7608 { "COLOR_ATTACHMENT4", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CE4) } },
7609 { "COLOR_ATTACHMENT5", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CE5) } },
7610 { "COLOR_ATTACHMENT6", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CE6) } },
7611 { "COLOR_ATTACHMENT7", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CE7) } },
7612 { "COLOR_ATTACHMENT8", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CE8) } },
7613 { "COLOR_ATTACHMENT9", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CE9) } },
7614 { "COLOR_ATTACHMENT10", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CEA) } },
7615 { "COLOR_ATTACHMENT11", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CEB) } },
7616 { "COLOR_ATTACHMENT12", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CEC) } },
7617 { "COLOR_ATTACHMENT13", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CED) } },
7618 { "COLOR_ATTACHMENT14", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CEE) } },
7619 { "COLOR_ATTACHMENT15", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CEF) } },
7620 { "FRAMEBUFFER_INCOMPLETE_MULTISAMPLE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D56) } },
7621 { "MAX_SAMPLES", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D57) } },
7622 { "HALF_FLOAT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x140B) } },
7623 { "RG", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8227) } },
7624 { "RG_INTEGER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8228) } },
7625 { "R8", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8229) } },
7626 { "RG8", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x822B) } },
7627 { "R16F", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x822D) } },
7628 { "R32F", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x822E) } },
7629 { "RG16F", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x822F) } },
7630 { "RG32F", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8230) } },
7631 { "R8I", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8231) } },
7632 { "R8UI", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8232) } },
7633 { "R16I", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8233) } },
7634 { "R16UI", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8234) } },
7635 { "R32I", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8235) } },
7636 { "R32UI", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8236) } },
7637 { "RG8I", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8237) } },
7638 { "RG8UI", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8238) } },
7639 { "RG16I", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8239) } },
7640 { "RG16UI", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x823A) } },
7641 { "RG32I", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x823B) } },
7642 { "RG32UI", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x823C) } },
7643 { "VERTEX_ARRAY_BINDING", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x85B5) } },
7644 { "R8_SNORM", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8F94) } },
7645 { "RG8_SNORM", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8F95) } },
7646 { "RGB8_SNORM", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8F96) } },
7647 { "RGBA8_SNORM", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8F97) } },
7648 { "SIGNED_NORMALIZED", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8F9C) } },
7649 { "COPY_READ_BUFFER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8F36) } },
7650 { "COPY_WRITE_BUFFER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8F37) } },
7651 { "COPY_READ_BUFFER_BINDING", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8F36) } },
7652 { "COPY_WRITE_BUFFER_BINDING", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8F37) } },
7653 { "UNIFORM_BUFFER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A11) } },
7654 { "UNIFORM_BUFFER_BINDING", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A28) } },
7655 { "UNIFORM_BUFFER_START", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A29) } },
7656 { "UNIFORM_BUFFER_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A2A) } },
7657 { "MAX_VERTEX_UNIFORM_BLOCKS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A2B) } },
7658 { "MAX_FRAGMENT_UNIFORM_BLOCKS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A2D) } },
7659 { "MAX_COMBINED_UNIFORM_BLOCKS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A2E) } },
7660 { "MAX_UNIFORM_BUFFER_BINDINGS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A2F) } },
7661 { "MAX_UNIFORM_BLOCK_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A30) } },
7662 { "MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A31) } },
7663 { "MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A33) } },
7664 { "UNIFORM_BUFFER_OFFSET_ALIGNMENT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A34) } },
7665 { "ACTIVE_UNIFORM_BLOCKS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A36) } },
7666 { "UNIFORM_TYPE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A37) } },
7667 { "UNIFORM_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A38) } },
7668 { "UNIFORM_BLOCK_INDEX", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A3A) } },
7669 { "UNIFORM_OFFSET", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A3B) } },
7670 { "UNIFORM_ARRAY_STRIDE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A3C) } },
7671 { "UNIFORM_MATRIX_STRIDE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A3D) } },
7672 { "UNIFORM_IS_ROW_MAJOR", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A3E) } },
7673 { "UNIFORM_BLOCK_BINDING", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A3F) } },
7674 { "UNIFORM_BLOCK_DATA_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A40) } },
7675 { "UNIFORM_BLOCK_ACTIVE_UNIFORMS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A42) } },
7676 { "UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A43) } },
7677 { "UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A44) } },
7678 { "UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8A46) } },
7679 { "INVALID_INDEX", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0xFFFFFFFF) } },
7680 { "MAX_VERTEX_OUTPUT_COMPONENTS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x9122) } },
7681 { "MAX_FRAGMENT_INPUT_COMPONENTS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x9125) } },
7682 { "MAX_SERVER_WAIT_TIMEOUT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x9111) } },
7683 { "OBJECT_TYPE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x9112) } },
7684 { "SYNC_CONDITION", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x9113) } },
7685 { "SYNC_STATUS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x9114) } },
7686 { "SYNC_FLAGS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x9115) } },
7687 { "SYNC_FENCE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x9116) } },
7688 { "SYNC_GPU_COMMANDS_COMPLETE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x9117) } },
7689 { "UNSIGNALED", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x9118) } },
7690 { "SIGNALED", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x9119) } },
7691 { "ALREADY_SIGNALED", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x911A) } },
7692 { "TIMEOUT_EXPIRED", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x911B) } },
7693 { "CONDITION_SATISFIED", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x911C) } },
7694 { "WAIT_FAILED", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x911D) } },
7695 { "SYNC_FLUSH_COMMANDS_BIT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x00000001) } },
7696 { "VERTEX_ATTRIB_ARRAY_DIVISOR", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x88FE) } },
7697 { "ANY_SAMPLES_PASSED", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8C2F) } },
7698 { "ANY_SAMPLES_PASSED_CONSERVATIVE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D6A) } },
7699 { "SAMPLER_BINDING", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8919) } },
7700 { "RGB10_A2UI", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x906F) } },
7701 { "INT_2_10_10_10_REV", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D9F) } },
7702 { "TRANSFORM_FEEDBACK", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8E22) } },
7703 { "TRANSFORM_FEEDBACK_PAUSED", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8E23) } },
7704 { "TRANSFORM_FEEDBACK_ACTIVE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8E24) } },
7705 { "TRANSFORM_FEEDBACK_BINDING", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8E25) } },
7706 { "TEXTURE_IMMUTABLE_FORMAT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x912F) } },
7707 { "MAX_ELEMENT_INDEX", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D6B) } },
7708 { "TEXTURE_IMMUTABLE_LEVELS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x82DF) } },
7709 { "TIMEOUT_IGNORED", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(-1) } },
7710 { "MAX_CLIENT_WAIT_TIMEOUT_WEBGL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x9247) } },
7711#if ENABLE(WEBGL)
7712 { "DEPTH_BUFFER_BIT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x00000100) } },
7713#else
7714 { 0, 0, NoIntrinsic, { 0, 0 } },
7715#endif
7716#if ENABLE(WEBGL)
7717 { "STENCIL_BUFFER_BIT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x00000400) } },
7718#else
7719 { 0, 0, NoIntrinsic, { 0, 0 } },
7720#endif
7721#if ENABLE(WEBGL)
7722 { "COLOR_BUFFER_BIT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x00004000) } },
7723#else
7724 { 0, 0, NoIntrinsic, { 0, 0 } },
7725#endif
7726#if ENABLE(WEBGL)
7727 { "POINTS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0000) } },
7728#else
7729 { 0, 0, NoIntrinsic, { 0, 0 } },
7730#endif
7731#if ENABLE(WEBGL)
7732 { "LINES", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0001) } },
7733#else
7734 { 0, 0, NoIntrinsic, { 0, 0 } },
7735#endif
7736#if ENABLE(WEBGL)
7737 { "LINE_LOOP", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0002) } },
7738#else
7739 { 0, 0, NoIntrinsic, { 0, 0 } },
7740#endif
7741#if ENABLE(WEBGL)
7742 { "LINE_STRIP", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0003) } },
7743#else
7744 { 0, 0, NoIntrinsic, { 0, 0 } },
7745#endif
7746#if ENABLE(WEBGL)
7747 { "TRIANGLES", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0004) } },
7748#else
7749 { 0, 0, NoIntrinsic, { 0, 0 } },
7750#endif
7751#if ENABLE(WEBGL)
7752 { "TRIANGLE_STRIP", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0005) } },
7753#else
7754 { 0, 0, NoIntrinsic, { 0, 0 } },
7755#endif
7756#if ENABLE(WEBGL)
7757 { "TRIANGLE_FAN", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0006) } },
7758#else
7759 { 0, 0, NoIntrinsic, { 0, 0 } },
7760#endif
7761#if ENABLE(WEBGL)
7762 { "ZERO", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0) } },
7763#else
7764 { 0, 0, NoIntrinsic, { 0, 0 } },
7765#endif
7766#if ENABLE(WEBGL)
7767 { "ONE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(1) } },
7768#else
7769 { 0, 0, NoIntrinsic, { 0, 0 } },
7770#endif
7771#if ENABLE(WEBGL)
7772 { "SRC_COLOR", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0300) } },
7773#else
7774 { 0, 0, NoIntrinsic, { 0, 0 } },
7775#endif
7776#if ENABLE(WEBGL)
7777 { "ONE_MINUS_SRC_COLOR", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0301) } },
7778#else
7779 { 0, 0, NoIntrinsic, { 0, 0 } },
7780#endif
7781#if ENABLE(WEBGL)
7782 { "SRC_ALPHA", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0302) } },
7783#else
7784 { 0, 0, NoIntrinsic, { 0, 0 } },
7785#endif
7786#if ENABLE(WEBGL)
7787 { "ONE_MINUS_SRC_ALPHA", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0303) } },
7788#else
7789 { 0, 0, NoIntrinsic, { 0, 0 } },
7790#endif
7791#if ENABLE(WEBGL)
7792 { "DST_ALPHA", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0304) } },
7793#else
7794 { 0, 0, NoIntrinsic, { 0, 0 } },
7795#endif
7796#if ENABLE(WEBGL)
7797 { "ONE_MINUS_DST_ALPHA", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0305) } },
7798#else
7799 { 0, 0, NoIntrinsic, { 0, 0 } },
7800#endif
7801#if ENABLE(WEBGL)
7802 { "DST_COLOR", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0306) } },
7803#else
7804 { 0, 0, NoIntrinsic, { 0, 0 } },
7805#endif
7806#if ENABLE(WEBGL)
7807 { "ONE_MINUS_DST_COLOR", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0307) } },
7808#else
7809 { 0, 0, NoIntrinsic, { 0, 0 } },
7810#endif
7811#if ENABLE(WEBGL)
7812 { "SRC_ALPHA_SATURATE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0308) } },
7813#else
7814 { 0, 0, NoIntrinsic, { 0, 0 } },
7815#endif
7816#if ENABLE(WEBGL)
7817 { "FUNC_ADD", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8006) } },
7818#else
7819 { 0, 0, NoIntrinsic, { 0, 0 } },
7820#endif
7821#if ENABLE(WEBGL)
7822 { "BLEND_EQUATION", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8009) } },
7823#else
7824 { 0, 0, NoIntrinsic, { 0, 0 } },
7825#endif
7826#if ENABLE(WEBGL)
7827 { "BLEND_EQUATION_RGB", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8009) } },
7828#else
7829 { 0, 0, NoIntrinsic, { 0, 0 } },
7830#endif
7831#if ENABLE(WEBGL)
7832 { "BLEND_EQUATION_ALPHA", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x883D) } },
7833#else
7834 { 0, 0, NoIntrinsic, { 0, 0 } },
7835#endif
7836#if ENABLE(WEBGL)
7837 { "FUNC_SUBTRACT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x800A) } },
7838#else
7839 { 0, 0, NoIntrinsic, { 0, 0 } },
7840#endif
7841#if ENABLE(WEBGL)
7842 { "FUNC_REVERSE_SUBTRACT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x800B) } },
7843#else
7844 { 0, 0, NoIntrinsic, { 0, 0 } },
7845#endif
7846#if ENABLE(WEBGL)
7847 { "BLEND_DST_RGB", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x80C8) } },
7848#else
7849 { 0, 0, NoIntrinsic, { 0, 0 } },
7850#endif
7851#if ENABLE(WEBGL)
7852 { "BLEND_SRC_RGB", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x80C9) } },
7853#else
7854 { 0, 0, NoIntrinsic, { 0, 0 } },
7855#endif
7856#if ENABLE(WEBGL)
7857 { "BLEND_DST_ALPHA", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x80CA) } },
7858#else
7859 { 0, 0, NoIntrinsic, { 0, 0 } },
7860#endif
7861#if ENABLE(WEBGL)
7862 { "BLEND_SRC_ALPHA", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x80CB) } },
7863#else
7864 { 0, 0, NoIntrinsic, { 0, 0 } },
7865#endif
7866#if ENABLE(WEBGL)
7867 { "CONSTANT_COLOR", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8001) } },
7868#else
7869 { 0, 0, NoIntrinsic, { 0, 0 } },
7870#endif
7871#if ENABLE(WEBGL)
7872 { "ONE_MINUS_CONSTANT_COLOR", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8002) } },
7873#else
7874 { 0, 0, NoIntrinsic, { 0, 0 } },
7875#endif
7876#if ENABLE(WEBGL)
7877 { "CONSTANT_ALPHA", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8003) } },
7878#else
7879 { 0, 0, NoIntrinsic, { 0, 0 } },
7880#endif
7881#if ENABLE(WEBGL)
7882 { "ONE_MINUS_CONSTANT_ALPHA", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8004) } },
7883#else
7884 { 0, 0, NoIntrinsic, { 0, 0 } },
7885#endif
7886#if ENABLE(WEBGL)
7887 { "BLEND_COLOR", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8005) } },
7888#else
7889 { 0, 0, NoIntrinsic, { 0, 0 } },
7890#endif
7891#if ENABLE(WEBGL)
7892 { "ARRAY_BUFFER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8892) } },
7893#else
7894 { 0, 0, NoIntrinsic, { 0, 0 } },
7895#endif
7896#if ENABLE(WEBGL)
7897 { "ELEMENT_ARRAY_BUFFER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8893) } },
7898#else
7899 { 0, 0, NoIntrinsic, { 0, 0 } },
7900#endif
7901#if ENABLE(WEBGL)
7902 { "ARRAY_BUFFER_BINDING", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8894) } },
7903#else
7904 { 0, 0, NoIntrinsic, { 0, 0 } },
7905#endif
7906#if ENABLE(WEBGL)
7907 { "ELEMENT_ARRAY_BUFFER_BINDING", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8895) } },
7908#else
7909 { 0, 0, NoIntrinsic, { 0, 0 } },
7910#endif
7911#if ENABLE(WEBGL)
7912 { "STREAM_DRAW", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x88E0) } },
7913#else
7914 { 0, 0, NoIntrinsic, { 0, 0 } },
7915#endif
7916#if ENABLE(WEBGL)
7917 { "STATIC_DRAW", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x88E4) } },
7918#else
7919 { 0, 0, NoIntrinsic, { 0, 0 } },
7920#endif
7921#if ENABLE(WEBGL)
7922 { "DYNAMIC_DRAW", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x88E8) } },
7923#else
7924 { 0, 0, NoIntrinsic, { 0, 0 } },
7925#endif
7926#if ENABLE(WEBGL)
7927 { "BUFFER_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8764) } },
7928#else
7929 { 0, 0, NoIntrinsic, { 0, 0 } },
7930#endif
7931#if ENABLE(WEBGL)
7932 { "BUFFER_USAGE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8765) } },
7933#else
7934 { 0, 0, NoIntrinsic, { 0, 0 } },
7935#endif
7936#if ENABLE(WEBGL)
7937 { "CURRENT_VERTEX_ATTRIB", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8626) } },
7938#else
7939 { 0, 0, NoIntrinsic, { 0, 0 } },
7940#endif
7941#if ENABLE(WEBGL)
7942 { "FRONT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0404) } },
7943#else
7944 { 0, 0, NoIntrinsic, { 0, 0 } },
7945#endif
7946#if ENABLE(WEBGL)
7947 { "BACK", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0405) } },
7948#else
7949 { 0, 0, NoIntrinsic, { 0, 0 } },
7950#endif
7951#if ENABLE(WEBGL)
7952 { "FRONT_AND_BACK", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0408) } },
7953#else
7954 { 0, 0, NoIntrinsic, { 0, 0 } },
7955#endif
7956#if ENABLE(WEBGL)
7957 { "TEXTURE_2D", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0DE1) } },
7958#else
7959 { 0, 0, NoIntrinsic, { 0, 0 } },
7960#endif
7961#if ENABLE(WEBGL)
7962 { "CULL_FACE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0B44) } },
7963#else
7964 { 0, 0, NoIntrinsic, { 0, 0 } },
7965#endif
7966#if ENABLE(WEBGL)
7967 { "BLEND", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0BE2) } },
7968#else
7969 { 0, 0, NoIntrinsic, { 0, 0 } },
7970#endif
7971#if ENABLE(WEBGL)
7972 { "DITHER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0BD0) } },
7973#else
7974 { 0, 0, NoIntrinsic, { 0, 0 } },
7975#endif
7976#if ENABLE(WEBGL)
7977 { "STENCIL_TEST", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0B90) } },
7978#else
7979 { 0, 0, NoIntrinsic, { 0, 0 } },
7980#endif
7981#if ENABLE(WEBGL)
7982 { "DEPTH_TEST", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0B71) } },
7983#else
7984 { 0, 0, NoIntrinsic, { 0, 0 } },
7985#endif
7986#if ENABLE(WEBGL)
7987 { "SCISSOR_TEST", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0C11) } },
7988#else
7989 { 0, 0, NoIntrinsic, { 0, 0 } },
7990#endif
7991#if ENABLE(WEBGL)
7992 { "POLYGON_OFFSET_FILL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8037) } },
7993#else
7994 { 0, 0, NoIntrinsic, { 0, 0 } },
7995#endif
7996#if ENABLE(WEBGL)
7997 { "SAMPLE_ALPHA_TO_COVERAGE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x809E) } },
7998#else
7999 { 0, 0, NoIntrinsic, { 0, 0 } },
8000#endif
8001#if ENABLE(WEBGL)
8002 { "SAMPLE_COVERAGE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x80A0) } },
8003#else
8004 { 0, 0, NoIntrinsic, { 0, 0 } },
8005#endif
8006#if ENABLE(WEBGL)
8007 { "NO_ERROR", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0) } },
8008#else
8009 { 0, 0, NoIntrinsic, { 0, 0 } },
8010#endif
8011#if ENABLE(WEBGL)
8012 { "INVALID_ENUM", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0500) } },
8013#else
8014 { 0, 0, NoIntrinsic, { 0, 0 } },
8015#endif
8016#if ENABLE(WEBGL)
8017 { "INVALID_VALUE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0501) } },
8018#else
8019 { 0, 0, NoIntrinsic, { 0, 0 } },
8020#endif
8021#if ENABLE(WEBGL)
8022 { "INVALID_OPERATION", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0502) } },
8023#else
8024 { 0, 0, NoIntrinsic, { 0, 0 } },
8025#endif
8026#if ENABLE(WEBGL)
8027 { "OUT_OF_MEMORY", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0505) } },
8028#else
8029 { 0, 0, NoIntrinsic, { 0, 0 } },
8030#endif
8031#if ENABLE(WEBGL)
8032 { "CW", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0900) } },
8033#else
8034 { 0, 0, NoIntrinsic, { 0, 0 } },
8035#endif
8036#if ENABLE(WEBGL)
8037 { "CCW", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0901) } },
8038#else
8039 { 0, 0, NoIntrinsic, { 0, 0 } },
8040#endif
8041#if ENABLE(WEBGL)
8042 { "LINE_WIDTH", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0B21) } },
8043#else
8044 { 0, 0, NoIntrinsic, { 0, 0 } },
8045#endif
8046#if ENABLE(WEBGL)
8047 { "ALIASED_POINT_SIZE_RANGE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x846D) } },
8048#else
8049 { 0, 0, NoIntrinsic, { 0, 0 } },
8050#endif
8051#if ENABLE(WEBGL)
8052 { "ALIASED_LINE_WIDTH_RANGE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x846E) } },
8053#else
8054 { 0, 0, NoIntrinsic, { 0, 0 } },
8055#endif
8056#if ENABLE(WEBGL)
8057 { "CULL_FACE_MODE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0B45) } },
8058#else
8059 { 0, 0, NoIntrinsic, { 0, 0 } },
8060#endif
8061#if ENABLE(WEBGL)
8062 { "FRONT_FACE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0B46) } },
8063#else
8064 { 0, 0, NoIntrinsic, { 0, 0 } },
8065#endif
8066#if ENABLE(WEBGL)
8067 { "DEPTH_RANGE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0B70) } },
8068#else
8069 { 0, 0, NoIntrinsic, { 0, 0 } },
8070#endif
8071#if ENABLE(WEBGL)
8072 { "DEPTH_WRITEMASK", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0B72) } },
8073#else
8074 { 0, 0, NoIntrinsic, { 0, 0 } },
8075#endif
8076#if ENABLE(WEBGL)
8077 { "DEPTH_CLEAR_VALUE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0B73) } },
8078#else
8079 { 0, 0, NoIntrinsic, { 0, 0 } },
8080#endif
8081#if ENABLE(WEBGL)
8082 { "DEPTH_FUNC", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0B74) } },
8083#else
8084 { 0, 0, NoIntrinsic, { 0, 0 } },
8085#endif
8086#if ENABLE(WEBGL)
8087 { "STENCIL_CLEAR_VALUE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0B91) } },
8088#else
8089 { 0, 0, NoIntrinsic, { 0, 0 } },
8090#endif
8091#if ENABLE(WEBGL)
8092 { "STENCIL_FUNC", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0B92) } },
8093#else
8094 { 0, 0, NoIntrinsic, { 0, 0 } },
8095#endif
8096#if ENABLE(WEBGL)
8097 { "STENCIL_FAIL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0B94) } },
8098#else
8099 { 0, 0, NoIntrinsic, { 0, 0 } },
8100#endif
8101#if ENABLE(WEBGL)
8102 { "STENCIL_PASS_DEPTH_FAIL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0B95) } },
8103#else
8104 { 0, 0, NoIntrinsic, { 0, 0 } },
8105#endif
8106#if ENABLE(WEBGL)
8107 { "STENCIL_PASS_DEPTH_PASS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0B96) } },
8108#else
8109 { 0, 0, NoIntrinsic, { 0, 0 } },
8110#endif
8111#if ENABLE(WEBGL)
8112 { "STENCIL_REF", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0B97) } },
8113#else
8114 { 0, 0, NoIntrinsic, { 0, 0 } },
8115#endif
8116#if ENABLE(WEBGL)
8117 { "STENCIL_VALUE_MASK", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0B93) } },
8118#else
8119 { 0, 0, NoIntrinsic, { 0, 0 } },
8120#endif
8121#if ENABLE(WEBGL)
8122 { "STENCIL_WRITEMASK", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0B98) } },
8123#else
8124 { 0, 0, NoIntrinsic, { 0, 0 } },
8125#endif
8126#if ENABLE(WEBGL)
8127 { "STENCIL_BACK_FUNC", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8800) } },
8128#else
8129 { 0, 0, NoIntrinsic, { 0, 0 } },
8130#endif
8131#if ENABLE(WEBGL)
8132 { "STENCIL_BACK_FAIL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8801) } },
8133#else
8134 { 0, 0, NoIntrinsic, { 0, 0 } },
8135#endif
8136#if ENABLE(WEBGL)
8137 { "STENCIL_BACK_PASS_DEPTH_FAIL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8802) } },
8138#else
8139 { 0, 0, NoIntrinsic, { 0, 0 } },
8140#endif
8141#if ENABLE(WEBGL)
8142 { "STENCIL_BACK_PASS_DEPTH_PASS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8803) } },
8143#else
8144 { 0, 0, NoIntrinsic, { 0, 0 } },
8145#endif
8146#if ENABLE(WEBGL)
8147 { "STENCIL_BACK_REF", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CA3) } },
8148#else
8149 { 0, 0, NoIntrinsic, { 0, 0 } },
8150#endif
8151#if ENABLE(WEBGL)
8152 { "STENCIL_BACK_VALUE_MASK", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CA4) } },
8153#else
8154 { 0, 0, NoIntrinsic, { 0, 0 } },
8155#endif
8156#if ENABLE(WEBGL)
8157 { "STENCIL_BACK_WRITEMASK", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CA5) } },
8158#else
8159 { 0, 0, NoIntrinsic, { 0, 0 } },
8160#endif
8161#if ENABLE(WEBGL)
8162 { "VIEWPORT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0BA2) } },
8163#else
8164 { 0, 0, NoIntrinsic, { 0, 0 } },
8165#endif
8166#if ENABLE(WEBGL)
8167 { "SCISSOR_BOX", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0C10) } },
8168#else
8169 { 0, 0, NoIntrinsic, { 0, 0 } },
8170#endif
8171#if ENABLE(WEBGL)
8172 { "COLOR_CLEAR_VALUE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0C22) } },
8173#else
8174 { 0, 0, NoIntrinsic, { 0, 0 } },
8175#endif
8176#if ENABLE(WEBGL)
8177 { "COLOR_WRITEMASK", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0C23) } },
8178#else
8179 { 0, 0, NoIntrinsic, { 0, 0 } },
8180#endif
8181#if ENABLE(WEBGL)
8182 { "UNPACK_ALIGNMENT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0CF5) } },
8183#else
8184 { 0, 0, NoIntrinsic, { 0, 0 } },
8185#endif
8186#if ENABLE(WEBGL)
8187 { "PACK_ALIGNMENT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0D05) } },
8188#else
8189 { 0, 0, NoIntrinsic, { 0, 0 } },
8190#endif
8191#if ENABLE(WEBGL)
8192 { "MAX_TEXTURE_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0D33) } },
8193#else
8194 { 0, 0, NoIntrinsic, { 0, 0 } },
8195#endif
8196#if ENABLE(WEBGL)
8197 { "MAX_VIEWPORT_DIMS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0D3A) } },
8198#else
8199 { 0, 0, NoIntrinsic, { 0, 0 } },
8200#endif
8201#if ENABLE(WEBGL)
8202 { "SUBPIXEL_BITS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0D50) } },
8203#else
8204 { 0, 0, NoIntrinsic, { 0, 0 } },
8205#endif
8206#if ENABLE(WEBGL)
8207 { "RED_BITS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0D52) } },
8208#else
8209 { 0, 0, NoIntrinsic, { 0, 0 } },
8210#endif
8211#if ENABLE(WEBGL)
8212 { "GREEN_BITS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0D53) } },
8213#else
8214 { 0, 0, NoIntrinsic, { 0, 0 } },
8215#endif
8216#if ENABLE(WEBGL)
8217 { "BLUE_BITS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0D54) } },
8218#else
8219 { 0, 0, NoIntrinsic, { 0, 0 } },
8220#endif
8221#if ENABLE(WEBGL)
8222 { "ALPHA_BITS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0D55) } },
8223#else
8224 { 0, 0, NoIntrinsic, { 0, 0 } },
8225#endif
8226#if ENABLE(WEBGL)
8227 { "DEPTH_BITS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0D56) } },
8228#else
8229 { 0, 0, NoIntrinsic, { 0, 0 } },
8230#endif
8231#if ENABLE(WEBGL)
8232 { "STENCIL_BITS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0D57) } },
8233#else
8234 { 0, 0, NoIntrinsic, { 0, 0 } },
8235#endif
8236#if ENABLE(WEBGL)
8237 { "POLYGON_OFFSET_UNITS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x2A00) } },
8238#else
8239 { 0, 0, NoIntrinsic, { 0, 0 } },
8240#endif
8241#if ENABLE(WEBGL)
8242 { "POLYGON_OFFSET_FACTOR", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8038) } },
8243#else
8244 { 0, 0, NoIntrinsic, { 0, 0 } },
8245#endif
8246#if ENABLE(WEBGL)
8247 { "TEXTURE_BINDING_2D", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8069) } },
8248#else
8249 { 0, 0, NoIntrinsic, { 0, 0 } },
8250#endif
8251#if ENABLE(WEBGL)
8252 { "SAMPLE_BUFFERS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x80A8) } },
8253#else
8254 { 0, 0, NoIntrinsic, { 0, 0 } },
8255#endif
8256#if ENABLE(WEBGL)
8257 { "SAMPLES", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x80A9) } },
8258#else
8259 { 0, 0, NoIntrinsic, { 0, 0 } },
8260#endif
8261#if ENABLE(WEBGL)
8262 { "SAMPLE_COVERAGE_VALUE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x80AA) } },
8263#else
8264 { 0, 0, NoIntrinsic, { 0, 0 } },
8265#endif
8266#if ENABLE(WEBGL)
8267 { "SAMPLE_COVERAGE_INVERT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x80AB) } },
8268#else
8269 { 0, 0, NoIntrinsic, { 0, 0 } },
8270#endif
8271#if ENABLE(WEBGL)
8272 { "COMPRESSED_TEXTURE_FORMATS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x86A3) } },
8273#else
8274 { 0, 0, NoIntrinsic, { 0, 0 } },
8275#endif
8276#if ENABLE(WEBGL)
8277 { "DONT_CARE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1100) } },
8278#else
8279 { 0, 0, NoIntrinsic, { 0, 0 } },
8280#endif
8281#if ENABLE(WEBGL)
8282 { "FASTEST", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1101) } },
8283#else
8284 { 0, 0, NoIntrinsic, { 0, 0 } },
8285#endif
8286#if ENABLE(WEBGL)
8287 { "NICEST", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1102) } },
8288#else
8289 { 0, 0, NoIntrinsic, { 0, 0 } },
8290#endif
8291#if ENABLE(WEBGL)
8292 { "GENERATE_MIPMAP_HINT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8192) } },
8293#else
8294 { 0, 0, NoIntrinsic, { 0, 0 } },
8295#endif
8296#if ENABLE(WEBGL)
8297 { "BYTE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1400) } },
8298#else
8299 { 0, 0, NoIntrinsic, { 0, 0 } },
8300#endif
8301#if ENABLE(WEBGL)
8302 { "UNSIGNED_BYTE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1401) } },
8303#else
8304 { 0, 0, NoIntrinsic, { 0, 0 } },
8305#endif
8306#if ENABLE(WEBGL)
8307 { "SHORT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1402) } },
8308#else
8309 { 0, 0, NoIntrinsic, { 0, 0 } },
8310#endif
8311#if ENABLE(WEBGL)
8312 { "UNSIGNED_SHORT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1403) } },
8313#else
8314 { 0, 0, NoIntrinsic, { 0, 0 } },
8315#endif
8316#if ENABLE(WEBGL)
8317 { "INT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1404) } },
8318#else
8319 { 0, 0, NoIntrinsic, { 0, 0 } },
8320#endif
8321#if ENABLE(WEBGL)
8322 { "UNSIGNED_INT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1405) } },
8323#else
8324 { 0, 0, NoIntrinsic, { 0, 0 } },
8325#endif
8326#if ENABLE(WEBGL)
8327 { "FLOAT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1406) } },
8328#else
8329 { 0, 0, NoIntrinsic, { 0, 0 } },
8330#endif
8331#if ENABLE(WEBGL)
8332 { "DEPTH_COMPONENT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1902) } },
8333#else
8334 { 0, 0, NoIntrinsic, { 0, 0 } },
8335#endif
8336#if ENABLE(WEBGL)
8337 { "ALPHA", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1906) } },
8338#else
8339 { 0, 0, NoIntrinsic, { 0, 0 } },
8340#endif
8341#if ENABLE(WEBGL)
8342 { "RGB", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1907) } },
8343#else
8344 { 0, 0, NoIntrinsic, { 0, 0 } },
8345#endif
8346#if ENABLE(WEBGL)
8347 { "RGBA", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1908) } },
8348#else
8349 { 0, 0, NoIntrinsic, { 0, 0 } },
8350#endif
8351#if ENABLE(WEBGL)
8352 { "LUMINANCE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1909) } },
8353#else
8354 { 0, 0, NoIntrinsic, { 0, 0 } },
8355#endif
8356#if ENABLE(WEBGL)
8357 { "LUMINANCE_ALPHA", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x190A) } },
8358#else
8359 { 0, 0, NoIntrinsic, { 0, 0 } },
8360#endif
8361#if ENABLE(WEBGL)
8362 { "UNSIGNED_SHORT_4_4_4_4", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8033) } },
8363#else
8364 { 0, 0, NoIntrinsic, { 0, 0 } },
8365#endif
8366#if ENABLE(WEBGL)
8367 { "UNSIGNED_SHORT_5_5_5_1", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8034) } },
8368#else
8369 { 0, 0, NoIntrinsic, { 0, 0 } },
8370#endif
8371#if ENABLE(WEBGL)
8372 { "UNSIGNED_SHORT_5_6_5", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8363) } },
8373#else
8374 { 0, 0, NoIntrinsic, { 0, 0 } },
8375#endif
8376#if ENABLE(WEBGL)
8377 { "FRAGMENT_SHADER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B30) } },
8378#else
8379 { 0, 0, NoIntrinsic, { 0, 0 } },
8380#endif
8381#if ENABLE(WEBGL)
8382 { "VERTEX_SHADER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B31) } },
8383#else
8384 { 0, 0, NoIntrinsic, { 0, 0 } },
8385#endif
8386#if ENABLE(WEBGL)
8387 { "MAX_VERTEX_ATTRIBS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8869) } },
8388#else
8389 { 0, 0, NoIntrinsic, { 0, 0 } },
8390#endif
8391#if ENABLE(WEBGL)
8392 { "MAX_VERTEX_UNIFORM_VECTORS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DFB) } },
8393#else
8394 { 0, 0, NoIntrinsic, { 0, 0 } },
8395#endif
8396#if ENABLE(WEBGL)
8397 { "MAX_VARYING_VECTORS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DFC) } },
8398#else
8399 { 0, 0, NoIntrinsic, { 0, 0 } },
8400#endif
8401#if ENABLE(WEBGL)
8402 { "MAX_COMBINED_TEXTURE_IMAGE_UNITS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B4D) } },
8403#else
8404 { 0, 0, NoIntrinsic, { 0, 0 } },
8405#endif
8406#if ENABLE(WEBGL)
8407 { "MAX_VERTEX_TEXTURE_IMAGE_UNITS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B4C) } },
8408#else
8409 { 0, 0, NoIntrinsic, { 0, 0 } },
8410#endif
8411#if ENABLE(WEBGL)
8412 { "MAX_TEXTURE_IMAGE_UNITS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8872) } },
8413#else
8414 { 0, 0, NoIntrinsic, { 0, 0 } },
8415#endif
8416#if ENABLE(WEBGL)
8417 { "MAX_FRAGMENT_UNIFORM_VECTORS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DFD) } },
8418#else
8419 { 0, 0, NoIntrinsic, { 0, 0 } },
8420#endif
8421#if ENABLE(WEBGL)
8422 { "SHADER_TYPE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B4F) } },
8423#else
8424 { 0, 0, NoIntrinsic, { 0, 0 } },
8425#endif
8426#if ENABLE(WEBGL)
8427 { "DELETE_STATUS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B80) } },
8428#else
8429 { 0, 0, NoIntrinsic, { 0, 0 } },
8430#endif
8431#if ENABLE(WEBGL)
8432 { "LINK_STATUS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B82) } },
8433#else
8434 { 0, 0, NoIntrinsic, { 0, 0 } },
8435#endif
8436#if ENABLE(WEBGL)
8437 { "VALIDATE_STATUS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B83) } },
8438#else
8439 { 0, 0, NoIntrinsic, { 0, 0 } },
8440#endif
8441#if ENABLE(WEBGL)
8442 { "ATTACHED_SHADERS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B85) } },
8443#else
8444 { 0, 0, NoIntrinsic, { 0, 0 } },
8445#endif
8446#if ENABLE(WEBGL)
8447 { "ACTIVE_UNIFORMS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B86) } },
8448#else
8449 { 0, 0, NoIntrinsic, { 0, 0 } },
8450#endif
8451#if ENABLE(WEBGL)
8452 { "ACTIVE_ATTRIBUTES", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B89) } },
8453#else
8454 { 0, 0, NoIntrinsic, { 0, 0 } },
8455#endif
8456#if ENABLE(WEBGL)
8457 { "SHADING_LANGUAGE_VERSION", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B8C) } },
8458#else
8459 { 0, 0, NoIntrinsic, { 0, 0 } },
8460#endif
8461#if ENABLE(WEBGL)
8462 { "CURRENT_PROGRAM", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B8D) } },
8463#else
8464 { 0, 0, NoIntrinsic, { 0, 0 } },
8465#endif
8466#if ENABLE(WEBGL)
8467 { "NEVER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0200) } },
8468#else
8469 { 0, 0, NoIntrinsic, { 0, 0 } },
8470#endif
8471#if ENABLE(WEBGL)
8472 { "LESS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0201) } },
8473#else
8474 { 0, 0, NoIntrinsic, { 0, 0 } },
8475#endif
8476#if ENABLE(WEBGL)
8477 { "EQUAL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0202) } },
8478#else
8479 { 0, 0, NoIntrinsic, { 0, 0 } },
8480#endif
8481#if ENABLE(WEBGL)
8482 { "LEQUAL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0203) } },
8483#else
8484 { 0, 0, NoIntrinsic, { 0, 0 } },
8485#endif
8486#if ENABLE(WEBGL)
8487 { "GREATER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0204) } },
8488#else
8489 { 0, 0, NoIntrinsic, { 0, 0 } },
8490#endif
8491#if ENABLE(WEBGL)
8492 { "NOTEQUAL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0205) } },
8493#else
8494 { 0, 0, NoIntrinsic, { 0, 0 } },
8495#endif
8496#if ENABLE(WEBGL)
8497 { "GEQUAL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0206) } },
8498#else
8499 { 0, 0, NoIntrinsic, { 0, 0 } },
8500#endif
8501#if ENABLE(WEBGL)
8502 { "ALWAYS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0207) } },
8503#else
8504 { 0, 0, NoIntrinsic, { 0, 0 } },
8505#endif
8506#if ENABLE(WEBGL)
8507 { "KEEP", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1E00) } },
8508#else
8509 { 0, 0, NoIntrinsic, { 0, 0 } },
8510#endif
8511#if ENABLE(WEBGL)
8512 { "REPLACE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1E01) } },
8513#else
8514 { 0, 0, NoIntrinsic, { 0, 0 } },
8515#endif
8516#if ENABLE(WEBGL)
8517 { "INCR", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1E02) } },
8518#else
8519 { 0, 0, NoIntrinsic, { 0, 0 } },
8520#endif
8521#if ENABLE(WEBGL)
8522 { "DECR", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1E03) } },
8523#else
8524 { 0, 0, NoIntrinsic, { 0, 0 } },
8525#endif
8526#if ENABLE(WEBGL)
8527 { "INVERT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x150A) } },
8528#else
8529 { 0, 0, NoIntrinsic, { 0, 0 } },
8530#endif
8531#if ENABLE(WEBGL)
8532 { "INCR_WRAP", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8507) } },
8533#else
8534 { 0, 0, NoIntrinsic, { 0, 0 } },
8535#endif
8536#if ENABLE(WEBGL)
8537 { "DECR_WRAP", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8508) } },
8538#else
8539 { 0, 0, NoIntrinsic, { 0, 0 } },
8540#endif
8541#if ENABLE(WEBGL)
8542 { "VENDOR", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1F00) } },
8543#else
8544 { 0, 0, NoIntrinsic, { 0, 0 } },
8545#endif
8546#if ENABLE(WEBGL)
8547 { "RENDERER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1F01) } },
8548#else
8549 { 0, 0, NoIntrinsic, { 0, 0 } },
8550#endif
8551#if ENABLE(WEBGL)
8552 { "VERSION", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1F02) } },
8553#else
8554 { 0, 0, NoIntrinsic, { 0, 0 } },
8555#endif
8556#if ENABLE(WEBGL)
8557 { "NEAREST", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x2600) } },
8558#else
8559 { 0, 0, NoIntrinsic, { 0, 0 } },
8560#endif
8561#if ENABLE(WEBGL)
8562 { "LINEAR", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x2601) } },
8563#else
8564 { 0, 0, NoIntrinsic, { 0, 0 } },
8565#endif
8566#if ENABLE(WEBGL)
8567 { "NEAREST_MIPMAP_NEAREST", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x2700) } },
8568#else
8569 { 0, 0, NoIntrinsic, { 0, 0 } },
8570#endif
8571#if ENABLE(WEBGL)
8572 { "LINEAR_MIPMAP_NEAREST", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x2701) } },
8573#else
8574 { 0, 0, NoIntrinsic, { 0, 0 } },
8575#endif
8576#if ENABLE(WEBGL)
8577 { "NEAREST_MIPMAP_LINEAR", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x2702) } },
8578#else
8579 { 0, 0, NoIntrinsic, { 0, 0 } },
8580#endif
8581#if ENABLE(WEBGL)
8582 { "LINEAR_MIPMAP_LINEAR", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x2703) } },
8583#else
8584 { 0, 0, NoIntrinsic, { 0, 0 } },
8585#endif
8586#if ENABLE(WEBGL)
8587 { "TEXTURE_MAG_FILTER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x2800) } },
8588#else
8589 { 0, 0, NoIntrinsic, { 0, 0 } },
8590#endif
8591#if ENABLE(WEBGL)
8592 { "TEXTURE_MIN_FILTER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x2801) } },
8593#else
8594 { 0, 0, NoIntrinsic, { 0, 0 } },
8595#endif
8596#if ENABLE(WEBGL)
8597 { "TEXTURE_WRAP_S", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x2802) } },
8598#else
8599 { 0, 0, NoIntrinsic, { 0, 0 } },
8600#endif
8601#if ENABLE(WEBGL)
8602 { "TEXTURE_WRAP_T", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x2803) } },
8603#else
8604 { 0, 0, NoIntrinsic, { 0, 0 } },
8605#endif
8606#if ENABLE(WEBGL)
8607 { "TEXTURE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1702) } },
8608#else
8609 { 0, 0, NoIntrinsic, { 0, 0 } },
8610#endif
8611#if ENABLE(WEBGL)
8612 { "TEXTURE_CUBE_MAP", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8513) } },
8613#else
8614 { 0, 0, NoIntrinsic, { 0, 0 } },
8615#endif
8616#if ENABLE(WEBGL)
8617 { "TEXTURE_BINDING_CUBE_MAP", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8514) } },
8618#else
8619 { 0, 0, NoIntrinsic, { 0, 0 } },
8620#endif
8621#if ENABLE(WEBGL)
8622 { "TEXTURE_CUBE_MAP_POSITIVE_X", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8515) } },
8623#else
8624 { 0, 0, NoIntrinsic, { 0, 0 } },
8625#endif
8626#if ENABLE(WEBGL)
8627 { "TEXTURE_CUBE_MAP_NEGATIVE_X", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8516) } },
8628#else
8629 { 0, 0, NoIntrinsic, { 0, 0 } },
8630#endif
8631#if ENABLE(WEBGL)
8632 { "TEXTURE_CUBE_MAP_POSITIVE_Y", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8517) } },
8633#else
8634 { 0, 0, NoIntrinsic, { 0, 0 } },
8635#endif
8636#if ENABLE(WEBGL)
8637 { "TEXTURE_CUBE_MAP_NEGATIVE_Y", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8518) } },
8638#else
8639 { 0, 0, NoIntrinsic, { 0, 0 } },
8640#endif
8641#if ENABLE(WEBGL)
8642 { "TEXTURE_CUBE_MAP_POSITIVE_Z", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8519) } },
8643#else
8644 { 0, 0, NoIntrinsic, { 0, 0 } },
8645#endif
8646#if ENABLE(WEBGL)
8647 { "TEXTURE_CUBE_MAP_NEGATIVE_Z", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x851A) } },
8648#else
8649 { 0, 0, NoIntrinsic, { 0, 0 } },
8650#endif
8651#if ENABLE(WEBGL)
8652 { "MAX_CUBE_MAP_TEXTURE_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x851C) } },
8653#else
8654 { 0, 0, NoIntrinsic, { 0, 0 } },
8655#endif
8656#if ENABLE(WEBGL)
8657 { "TEXTURE0", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84C0) } },
8658#else
8659 { 0, 0, NoIntrinsic, { 0, 0 } },
8660#endif
8661#if ENABLE(WEBGL)
8662 { "TEXTURE1", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84C1) } },
8663#else
8664 { 0, 0, NoIntrinsic, { 0, 0 } },
8665#endif
8666#if ENABLE(WEBGL)
8667 { "TEXTURE2", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84C2) } },
8668#else
8669 { 0, 0, NoIntrinsic, { 0, 0 } },
8670#endif
8671#if ENABLE(WEBGL)
8672 { "TEXTURE3", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84C3) } },
8673#else
8674 { 0, 0, NoIntrinsic, { 0, 0 } },
8675#endif
8676#if ENABLE(WEBGL)
8677 { "TEXTURE4", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84C4) } },
8678#else
8679 { 0, 0, NoIntrinsic, { 0, 0 } },
8680#endif
8681#if ENABLE(WEBGL)
8682 { "TEXTURE5", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84C5) } },
8683#else
8684 { 0, 0, NoIntrinsic, { 0, 0 } },
8685#endif
8686#if ENABLE(WEBGL)
8687 { "TEXTURE6", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84C6) } },
8688#else
8689 { 0, 0, NoIntrinsic, { 0, 0 } },
8690#endif
8691#if ENABLE(WEBGL)
8692 { "TEXTURE7", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84C7) } },
8693#else
8694 { 0, 0, NoIntrinsic, { 0, 0 } },
8695#endif
8696#if ENABLE(WEBGL)
8697 { "TEXTURE8", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84C8) } },
8698#else
8699 { 0, 0, NoIntrinsic, { 0, 0 } },
8700#endif
8701#if ENABLE(WEBGL)
8702 { "TEXTURE9", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84C9) } },
8703#else
8704 { 0, 0, NoIntrinsic, { 0, 0 } },
8705#endif
8706#if ENABLE(WEBGL)
8707 { "TEXTURE10", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84CA) } },
8708#else
8709 { 0, 0, NoIntrinsic, { 0, 0 } },
8710#endif
8711#if ENABLE(WEBGL)
8712 { "TEXTURE11", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84CB) } },
8713#else
8714 { 0, 0, NoIntrinsic, { 0, 0 } },
8715#endif
8716#if ENABLE(WEBGL)
8717 { "TEXTURE12", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84CC) } },
8718#else
8719 { 0, 0, NoIntrinsic, { 0, 0 } },
8720#endif
8721#if ENABLE(WEBGL)
8722 { "TEXTURE13", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84CD) } },
8723#else
8724 { 0, 0, NoIntrinsic, { 0, 0 } },
8725#endif
8726#if ENABLE(WEBGL)
8727 { "TEXTURE14", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84CE) } },
8728#else
8729 { 0, 0, NoIntrinsic, { 0, 0 } },
8730#endif
8731#if ENABLE(WEBGL)
8732 { "TEXTURE15", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84CF) } },
8733#else
8734 { 0, 0, NoIntrinsic, { 0, 0 } },
8735#endif
8736#if ENABLE(WEBGL)
8737 { "TEXTURE16", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84D0) } },
8738#else
8739 { 0, 0, NoIntrinsic, { 0, 0 } },
8740#endif
8741#if ENABLE(WEBGL)
8742 { "TEXTURE17", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84D1) } },
8743#else
8744 { 0, 0, NoIntrinsic, { 0, 0 } },
8745#endif
8746#if ENABLE(WEBGL)
8747 { "TEXTURE18", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84D2) } },
8748#else
8749 { 0, 0, NoIntrinsic, { 0, 0 } },
8750#endif
8751#if ENABLE(WEBGL)
8752 { "TEXTURE19", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84D3) } },
8753#else
8754 { 0, 0, NoIntrinsic, { 0, 0 } },
8755#endif
8756#if ENABLE(WEBGL)
8757 { "TEXTURE20", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84D4) } },
8758#else
8759 { 0, 0, NoIntrinsic, { 0, 0 } },
8760#endif
8761#if ENABLE(WEBGL)
8762 { "TEXTURE21", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84D5) } },
8763#else
8764 { 0, 0, NoIntrinsic, { 0, 0 } },
8765#endif
8766#if ENABLE(WEBGL)
8767 { "TEXTURE22", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84D6) } },
8768#else
8769 { 0, 0, NoIntrinsic, { 0, 0 } },
8770#endif
8771#if ENABLE(WEBGL)
8772 { "TEXTURE23", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84D7) } },
8773#else
8774 { 0, 0, NoIntrinsic, { 0, 0 } },
8775#endif
8776#if ENABLE(WEBGL)
8777 { "TEXTURE24", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84D8) } },
8778#else
8779 { 0, 0, NoIntrinsic, { 0, 0 } },
8780#endif
8781#if ENABLE(WEBGL)
8782 { "TEXTURE25", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84D9) } },
8783#else
8784 { 0, 0, NoIntrinsic, { 0, 0 } },
8785#endif
8786#if ENABLE(WEBGL)
8787 { "TEXTURE26", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84DA) } },
8788#else
8789 { 0, 0, NoIntrinsic, { 0, 0 } },
8790#endif
8791#if ENABLE(WEBGL)
8792 { "TEXTURE27", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84DB) } },
8793#else
8794 { 0, 0, NoIntrinsic, { 0, 0 } },
8795#endif
8796#if ENABLE(WEBGL)
8797 { "TEXTURE28", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84DC) } },
8798#else
8799 { 0, 0, NoIntrinsic, { 0, 0 } },
8800#endif
8801#if ENABLE(WEBGL)
8802 { "TEXTURE29", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84DD) } },
8803#else
8804 { 0, 0, NoIntrinsic, { 0, 0 } },
8805#endif
8806#if ENABLE(WEBGL)
8807 { "TEXTURE30", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84DE) } },
8808#else
8809 { 0, 0, NoIntrinsic, { 0, 0 } },
8810#endif
8811#if ENABLE(WEBGL)
8812 { "TEXTURE31", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84DF) } },
8813#else
8814 { 0, 0, NoIntrinsic, { 0, 0 } },
8815#endif
8816#if ENABLE(WEBGL)
8817 { "ACTIVE_TEXTURE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84E0) } },
8818#else
8819 { 0, 0, NoIntrinsic, { 0, 0 } },
8820#endif
8821#if ENABLE(WEBGL)
8822 { "REPEAT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x2901) } },
8823#else
8824 { 0, 0, NoIntrinsic, { 0, 0 } },
8825#endif
8826#if ENABLE(WEBGL)
8827 { "CLAMP_TO_EDGE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x812F) } },
8828#else
8829 { 0, 0, NoIntrinsic, { 0, 0 } },
8830#endif
8831#if ENABLE(WEBGL)
8832 { "MIRRORED_REPEAT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8370) } },
8833#else
8834 { 0, 0, NoIntrinsic, { 0, 0 } },
8835#endif
8836#if ENABLE(WEBGL)
8837 { "FLOAT_VEC2", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B50) } },
8838#else
8839 { 0, 0, NoIntrinsic, { 0, 0 } },
8840#endif
8841#if ENABLE(WEBGL)
8842 { "FLOAT_VEC3", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B51) } },
8843#else
8844 { 0, 0, NoIntrinsic, { 0, 0 } },
8845#endif
8846#if ENABLE(WEBGL)
8847 { "FLOAT_VEC4", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B52) } },
8848#else
8849 { 0, 0, NoIntrinsic, { 0, 0 } },
8850#endif
8851#if ENABLE(WEBGL)
8852 { "INT_VEC2", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B53) } },
8853#else
8854 { 0, 0, NoIntrinsic, { 0, 0 } },
8855#endif
8856#if ENABLE(WEBGL)
8857 { "INT_VEC3", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B54) } },
8858#else
8859 { 0, 0, NoIntrinsic, { 0, 0 } },
8860#endif
8861#if ENABLE(WEBGL)
8862 { "INT_VEC4", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B55) } },
8863#else
8864 { 0, 0, NoIntrinsic, { 0, 0 } },
8865#endif
8866#if ENABLE(WEBGL)
8867 { "BOOL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B56) } },
8868#else
8869 { 0, 0, NoIntrinsic, { 0, 0 } },
8870#endif
8871#if ENABLE(WEBGL)
8872 { "BOOL_VEC2", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B57) } },
8873#else
8874 { 0, 0, NoIntrinsic, { 0, 0 } },
8875#endif
8876#if ENABLE(WEBGL)
8877 { "BOOL_VEC3", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B58) } },
8878#else
8879 { 0, 0, NoIntrinsic, { 0, 0 } },
8880#endif
8881#if ENABLE(WEBGL)
8882 { "BOOL_VEC4", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B59) } },
8883#else
8884 { 0, 0, NoIntrinsic, { 0, 0 } },
8885#endif
8886#if ENABLE(WEBGL)
8887 { "FLOAT_MAT2", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B5A) } },
8888#else
8889 { 0, 0, NoIntrinsic, { 0, 0 } },
8890#endif
8891#if ENABLE(WEBGL)
8892 { "FLOAT_MAT3", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B5B) } },
8893#else
8894 { 0, 0, NoIntrinsic, { 0, 0 } },
8895#endif
8896#if ENABLE(WEBGL)
8897 { "FLOAT_MAT4", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B5C) } },
8898#else
8899 { 0, 0, NoIntrinsic, { 0, 0 } },
8900#endif
8901#if ENABLE(WEBGL)
8902 { "SAMPLER_2D", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B5E) } },
8903#else
8904 { 0, 0, NoIntrinsic, { 0, 0 } },
8905#endif
8906#if ENABLE(WEBGL)
8907 { "SAMPLER_CUBE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B60) } },
8908#else
8909 { 0, 0, NoIntrinsic, { 0, 0 } },
8910#endif
8911#if ENABLE(WEBGL)
8912 { "VERTEX_ATTRIB_ARRAY_ENABLED", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8622) } },
8913#else
8914 { 0, 0, NoIntrinsic, { 0, 0 } },
8915#endif
8916#if ENABLE(WEBGL)
8917 { "VERTEX_ATTRIB_ARRAY_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8623) } },
8918#else
8919 { 0, 0, NoIntrinsic, { 0, 0 } },
8920#endif
8921#if ENABLE(WEBGL)
8922 { "VERTEX_ATTRIB_ARRAY_STRIDE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8624) } },
8923#else
8924 { 0, 0, NoIntrinsic, { 0, 0 } },
8925#endif
8926#if ENABLE(WEBGL)
8927 { "VERTEX_ATTRIB_ARRAY_TYPE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8625) } },
8928#else
8929 { 0, 0, NoIntrinsic, { 0, 0 } },
8930#endif
8931#if ENABLE(WEBGL)
8932 { "VERTEX_ATTRIB_ARRAY_NORMALIZED", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x886A) } },
8933#else
8934 { 0, 0, NoIntrinsic, { 0, 0 } },
8935#endif
8936#if ENABLE(WEBGL)
8937 { "VERTEX_ATTRIB_ARRAY_POINTER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8645) } },
8938#else
8939 { 0, 0, NoIntrinsic, { 0, 0 } },
8940#endif
8941#if ENABLE(WEBGL)
8942 { "VERTEX_ATTRIB_ARRAY_BUFFER_BINDING", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x889F) } },
8943#else
8944 { 0, 0, NoIntrinsic, { 0, 0 } },
8945#endif
8946#if ENABLE(WEBGL)
8947 { "IMPLEMENTATION_COLOR_READ_TYPE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B9A) } },
8948#else
8949 { 0, 0, NoIntrinsic, { 0, 0 } },
8950#endif
8951#if ENABLE(WEBGL)
8952 { "IMPLEMENTATION_COLOR_READ_FORMAT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B9B) } },
8953#else
8954 { 0, 0, NoIntrinsic, { 0, 0 } },
8955#endif
8956#if ENABLE(WEBGL)
8957 { "COMPILE_STATUS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8B81) } },
8958#else
8959 { 0, 0, NoIntrinsic, { 0, 0 } },
8960#endif
8961#if ENABLE(WEBGL)
8962 { "LOW_FLOAT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DF0) } },
8963#else
8964 { 0, 0, NoIntrinsic, { 0, 0 } },
8965#endif
8966#if ENABLE(WEBGL)
8967 { "MEDIUM_FLOAT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DF1) } },
8968#else
8969 { 0, 0, NoIntrinsic, { 0, 0 } },
8970#endif
8971#if ENABLE(WEBGL)
8972 { "HIGH_FLOAT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DF2) } },
8973#else
8974 { 0, 0, NoIntrinsic, { 0, 0 } },
8975#endif
8976#if ENABLE(WEBGL)
8977 { "LOW_INT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DF3) } },
8978#else
8979 { 0, 0, NoIntrinsic, { 0, 0 } },
8980#endif
8981#if ENABLE(WEBGL)
8982 { "MEDIUM_INT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DF4) } },
8983#else
8984 { 0, 0, NoIntrinsic, { 0, 0 } },
8985#endif
8986#if ENABLE(WEBGL)
8987 { "HIGH_INT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8DF5) } },
8988#else
8989 { 0, 0, NoIntrinsic, { 0, 0 } },
8990#endif
8991#if ENABLE(WEBGL)
8992 { "FRAMEBUFFER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D40) } },
8993#else
8994 { 0, 0, NoIntrinsic, { 0, 0 } },
8995#endif
8996#if ENABLE(WEBGL)
8997 { "RENDERBUFFER", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D41) } },
8998#else
8999 { 0, 0, NoIntrinsic, { 0, 0 } },
9000#endif
9001#if ENABLE(WEBGL)
9002 { "RGBA4", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8056) } },
9003#else
9004 { 0, 0, NoIntrinsic, { 0, 0 } },
9005#endif
9006#if ENABLE(WEBGL)
9007 { "RGB5_A1", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8057) } },
9008#else
9009 { 0, 0, NoIntrinsic, { 0, 0 } },
9010#endif
9011#if ENABLE(WEBGL)
9012 { "RGB565", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D62) } },
9013#else
9014 { 0, 0, NoIntrinsic, { 0, 0 } },
9015#endif
9016#if ENABLE(WEBGL)
9017 { "DEPTH_COMPONENT16", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x81A5) } },
9018#else
9019 { 0, 0, NoIntrinsic, { 0, 0 } },
9020#endif
9021#if ENABLE(WEBGL)
9022 { "STENCIL_INDEX", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x1901) } },
9023#else
9024 { 0, 0, NoIntrinsic, { 0, 0 } },
9025#endif
9026#if ENABLE(WEBGL)
9027 { "STENCIL_INDEX8", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D48) } },
9028#else
9029 { 0, 0, NoIntrinsic, { 0, 0 } },
9030#endif
9031#if ENABLE(WEBGL)
9032 { "DEPTH_STENCIL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84F9) } },
9033#else
9034 { 0, 0, NoIntrinsic, { 0, 0 } },
9035#endif
9036#if ENABLE(WEBGL)
9037 { "RENDERBUFFER_WIDTH", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D42) } },
9038#else
9039 { 0, 0, NoIntrinsic, { 0, 0 } },
9040#endif
9041#if ENABLE(WEBGL)
9042 { "RENDERBUFFER_HEIGHT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D43) } },
9043#else
9044 { 0, 0, NoIntrinsic, { 0, 0 } },
9045#endif
9046#if ENABLE(WEBGL)
9047 { "RENDERBUFFER_INTERNAL_FORMAT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D44) } },
9048#else
9049 { 0, 0, NoIntrinsic, { 0, 0 } },
9050#endif
9051#if ENABLE(WEBGL)
9052 { "RENDERBUFFER_RED_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D50) } },
9053#else
9054 { 0, 0, NoIntrinsic, { 0, 0 } },
9055#endif
9056#if ENABLE(WEBGL)
9057 { "RENDERBUFFER_GREEN_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D51) } },
9058#else
9059 { 0, 0, NoIntrinsic, { 0, 0 } },
9060#endif
9061#if ENABLE(WEBGL)
9062 { "RENDERBUFFER_BLUE_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D52) } },
9063#else
9064 { 0, 0, NoIntrinsic, { 0, 0 } },
9065#endif
9066#if ENABLE(WEBGL)
9067 { "RENDERBUFFER_ALPHA_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D53) } },
9068#else
9069 { 0, 0, NoIntrinsic, { 0, 0 } },
9070#endif
9071#if ENABLE(WEBGL)
9072 { "RENDERBUFFER_DEPTH_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D54) } },
9073#else
9074 { 0, 0, NoIntrinsic, { 0, 0 } },
9075#endif
9076#if ENABLE(WEBGL)
9077 { "RENDERBUFFER_STENCIL_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D55) } },
9078#else
9079 { 0, 0, NoIntrinsic, { 0, 0 } },
9080#endif
9081#if ENABLE(WEBGL)
9082 { "FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CD0) } },
9083#else
9084 { 0, 0, NoIntrinsic, { 0, 0 } },
9085#endif
9086#if ENABLE(WEBGL)
9087 { "FRAMEBUFFER_ATTACHMENT_OBJECT_NAME", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CD1) } },
9088#else
9089 { 0, 0, NoIntrinsic, { 0, 0 } },
9090#endif
9091#if ENABLE(WEBGL)
9092 { "FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CD2) } },
9093#else
9094 { 0, 0, NoIntrinsic, { 0, 0 } },
9095#endif
9096#if ENABLE(WEBGL)
9097 { "FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CD3) } },
9098#else
9099 { 0, 0, NoIntrinsic, { 0, 0 } },
9100#endif
9101#if ENABLE(WEBGL)
9102 { "COLOR_ATTACHMENT0", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CE0) } },
9103#else
9104 { 0, 0, NoIntrinsic, { 0, 0 } },
9105#endif
9106#if ENABLE(WEBGL)
9107 { "DEPTH_ATTACHMENT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D00) } },
9108#else
9109 { 0, 0, NoIntrinsic, { 0, 0 } },
9110#endif
9111#if ENABLE(WEBGL)
9112 { "STENCIL_ATTACHMENT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8D20) } },
9113#else
9114 { 0, 0, NoIntrinsic, { 0, 0 } },
9115#endif
9116#if ENABLE(WEBGL)
9117 { "DEPTH_STENCIL_ATTACHMENT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x821A) } },
9118#else
9119 { 0, 0, NoIntrinsic, { 0, 0 } },
9120#endif
9121#if ENABLE(WEBGL)
9122 { "NONE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0) } },
9123#else
9124 { 0, 0, NoIntrinsic, { 0, 0 } },
9125#endif
9126#if ENABLE(WEBGL)
9127 { "FRAMEBUFFER_COMPLETE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CD5) } },
9128#else
9129 { 0, 0, NoIntrinsic, { 0, 0 } },
9130#endif
9131#if ENABLE(WEBGL)
9132 { "FRAMEBUFFER_INCOMPLETE_ATTACHMENT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CD6) } },
9133#else
9134 { 0, 0, NoIntrinsic, { 0, 0 } },
9135#endif
9136#if ENABLE(WEBGL)
9137 { "FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CD7) } },
9138#else
9139 { 0, 0, NoIntrinsic, { 0, 0 } },
9140#endif
9141#if ENABLE(WEBGL)
9142 { "FRAMEBUFFER_INCOMPLETE_DIMENSIONS", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CD9) } },
9143#else
9144 { 0, 0, NoIntrinsic, { 0, 0 } },
9145#endif
9146#if ENABLE(WEBGL)
9147 { "FRAMEBUFFER_UNSUPPORTED", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CDD) } },
9148#else
9149 { 0, 0, NoIntrinsic, { 0, 0 } },
9150#endif
9151#if ENABLE(WEBGL)
9152 { "FRAMEBUFFER_BINDING", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CA6) } },
9153#else
9154 { 0, 0, NoIntrinsic, { 0, 0 } },
9155#endif
9156#if ENABLE(WEBGL)
9157 { "RENDERBUFFER_BINDING", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x8CA7) } },
9158#else
9159 { 0, 0, NoIntrinsic, { 0, 0 } },
9160#endif
9161#if ENABLE(WEBGL)
9162 { "MAX_RENDERBUFFER_SIZE", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x84E8) } },
9163#else
9164 { 0, 0, NoIntrinsic, { 0, 0 } },
9165#endif
9166#if ENABLE(WEBGL)
9167 { "INVALID_FRAMEBUFFER_OPERATION", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x0506) } },
9168#else
9169 { 0, 0, NoIntrinsic, { 0, 0 } },
9170#endif
9171#if ENABLE(WEBGL)
9172 { "UNPACK_FLIP_Y_WEBGL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x9240) } },
9173#else
9174 { 0, 0, NoIntrinsic, { 0, 0 } },
9175#endif
9176#if ENABLE(WEBGL)
9177 { "UNPACK_PREMULTIPLY_ALPHA_WEBGL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x9241) } },
9178#else
9179 { 0, 0, NoIntrinsic, { 0, 0 } },
9180#endif
9181#if ENABLE(WEBGL)
9182 { "CONTEXT_LOST_WEBGL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x9242) } },
9183#else
9184 { 0, 0, NoIntrinsic, { 0, 0 } },
9185#endif
9186#if ENABLE(WEBGL)
9187 { "UNPACK_COLORSPACE_CONVERSION_WEBGL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x9243) } },
9188#else
9189 { 0, 0, NoIntrinsic, { 0, 0 } },
9190#endif
9191#if ENABLE(WEBGL)
9192 { "BROWSER_DEFAULT_WEBGL", JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0x9244) } },
9193#else
9194 { 0, 0, NoIntrinsic, { 0, 0 } },
9195#endif
9196};
9197
9198static const HashTable JSWebGL2RenderingContextPrototypeTable = { 791, 2047, true, JSWebGL2RenderingContext::info(), JSWebGL2RenderingContextPrototypeTableValues, JSWebGL2RenderingContextPrototypeTableIndex };
9199const ClassInfo JSWebGL2RenderingContextPrototype::s_info = { "WebGL2RenderingContext", &Base::s_info, &JSWebGL2RenderingContextPrototypeTable, nullptr, CREATE_METHOD_TABLE(JSWebGL2RenderingContextPrototype) };
9200
9201void JSWebGL2RenderingContextPrototype::finishCreation(VM& vm)
9202{
9203 Base::finishCreation(vm);
9204 reifyStaticProperties(vm, JSWebGL2RenderingContext::info(), JSWebGL2RenderingContextPrototypeTableValues, *this);
9205 JSC_TO_STRING_TAG_WITHOUT_TRANSITION();
9206}
9207
9208const ClassInfo JSWebGL2RenderingContext::s_info = { "WebGL2RenderingContext", &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSWebGL2RenderingContext) };
9209
9210JSWebGL2RenderingContext::JSWebGL2RenderingContext(Structure* structure, JSDOMGlobalObject& globalObject, Ref<WebGL2RenderingContext>&& impl)
9211 : JSDOMWrapper<WebGL2RenderingContext>(structure, globalObject, WTFMove(impl))
9212{
9213}
9214
9215void JSWebGL2RenderingContext::finishCreation(VM& vm)
9216{
9217 Base::finishCreation(vm);
9218 ASSERT(inherits(vm, info()));
9219
9220 static_assert(std::is_base_of<ActiveDOMObject, WebGL2RenderingContext>::value, "Interface is marked as [ActiveDOMObject] but implementation class does not subclass ActiveDOMObject.");
9221
9222}
9223
9224JSObject* JSWebGL2RenderingContext::createPrototype(VM& vm, JSDOMGlobalObject& globalObject)
9225{
9226 return JSWebGL2RenderingContextPrototype::create(vm, &globalObject, JSWebGL2RenderingContextPrototype::createStructure(vm, &globalObject, globalObject.objectPrototype()));
9227}
9228
9229JSObject* JSWebGL2RenderingContext::prototype(VM& vm, JSDOMGlobalObject& globalObject)
9230{
9231 return getDOMPrototype<JSWebGL2RenderingContext>(vm, globalObject);
9232}
9233
9234JSValue JSWebGL2RenderingContext::getConstructor(VM& vm, const JSGlobalObject* globalObject)
9235{
9236 return getDOMConstructor<JSWebGL2RenderingContextDOMConstructor, DOMConstructorID::WebGL2RenderingContext>(vm, *jsCast<const JSDOMGlobalObject*>(globalObject));
9237}
9238
9239void JSWebGL2RenderingContext::destroy(JSC::JSCell* cell)
9240{
9241 JSWebGL2RenderingContext* thisObject = static_cast<JSWebGL2RenderingContext*>(cell);
9242 thisObject->JSWebGL2RenderingContext::~JSWebGL2RenderingContext();
9243}
9244
9245JSC_DEFINE_CUSTOM_GETTER(jsWebGL2RenderingContextConstructor, (JSGlobalObject* lexicalGlobalObject, EncodedJSValue thisValue, PropertyName))
9246{
9247 VM& vm = JSC::getVM(lexicalGlobalObject);
9248 auto throwScope = DECLARE_THROW_SCOPE(vm);
9249 auto* prototype = jsDynamicCast<JSWebGL2RenderingContextPrototype*>(vm, JSValue::decode(thisValue));
9250 if (UNLIKELY(!prototype))
9251 return throwVMTypeError(lexicalGlobalObject, throwScope);
9252 return JSValue::encode(JSWebGL2RenderingContext::getConstructor(JSC::getVM(lexicalGlobalObject), prototype->globalObject()));
9253}
9254
9255#if ENABLE(WEBGL)
9256static inline JSValue jsWebGL2RenderingContext_canvasGetter(JSGlobalObject& lexicalGlobalObject, JSWebGL2RenderingContext& thisObject)
9257{
9258 auto& vm = JSC::getVM(&lexicalGlobalObject);
9259 auto throwScope = DECLARE_THROW_SCOPE(vm);
9260 auto& impl = thisObject.wrapped();
9261 RELEASE_AND_RETURN(throwScope, (toJS<IDLUnion<IDLInterface<HTMLCanvasElement>>>(lexicalGlobalObject, *thisObject.globalObject(), throwScope, impl.canvas())));
9262}
9263
9264JSC_DEFINE_CUSTOM_GETTER(jsWebGL2RenderingContext_canvas, (JSGlobalObject* lexicalGlobalObject, EncodedJSValue thisValue, PropertyName attributeName))
9265{
9266 return IDLAttribute<JSWebGL2RenderingContext>::get<jsWebGL2RenderingContext_canvasGetter, CastedThisErrorBehavior::Assert>(*lexicalGlobalObject, thisValue, attributeName);
9267}
9268
9269#endif
9270
9271#if ENABLE(WEBGL)
9272static inline JSValue jsWebGL2RenderingContext_drawingBufferWidthGetter(JSGlobalObject& lexicalGlobalObject, JSWebGL2RenderingContext& thisObject)
9273{
9274 auto& vm = JSC::getVM(&lexicalGlobalObject);
9275 auto throwScope = DECLARE_THROW_SCOPE(vm);
9276 auto& impl = thisObject.wrapped();
9277 RELEASE_AND_RETURN(throwScope, (toJS<IDLLong>(lexicalGlobalObject, throwScope, impl.drawingBufferWidth())));
9278}
9279
9280JSC_DEFINE_CUSTOM_GETTER(jsWebGL2RenderingContext_drawingBufferWidth, (JSGlobalObject* lexicalGlobalObject, EncodedJSValue thisValue, PropertyName attributeName))
9281{
9282 return IDLAttribute<JSWebGL2RenderingContext>::get<jsWebGL2RenderingContext_drawingBufferWidthGetter, CastedThisErrorBehavior::Assert>(*lexicalGlobalObject, thisValue, attributeName);
9283}
9284
9285#endif
9286
9287#if ENABLE(WEBGL)
9288static inline JSValue jsWebGL2RenderingContext_drawingBufferHeightGetter(JSGlobalObject& lexicalGlobalObject, JSWebGL2RenderingContext& thisObject)
9289{
9290 auto& vm = JSC::getVM(&lexicalGlobalObject);
9291 auto throwScope = DECLARE_THROW_SCOPE(vm);
9292 auto& impl = thisObject.wrapped();
9293 RELEASE_AND_RETURN(throwScope, (toJS<IDLLong>(lexicalGlobalObject, throwScope, impl.drawingBufferHeight())));
9294}
9295
9296JSC_DEFINE_CUSTOM_GETTER(jsWebGL2RenderingContext_drawingBufferHeight, (JSGlobalObject* lexicalGlobalObject, EncodedJSValue thisValue, PropertyName attributeName))
9297{
9298 return IDLAttribute<JSWebGL2RenderingContext>::get<jsWebGL2RenderingContext_drawingBufferHeightGetter, CastedThisErrorBehavior::Assert>(*lexicalGlobalObject, thisValue, attributeName);
9299}
9300
9301#endif
9302
9303static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_bufferData1Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
9304{
9305 auto& vm = JSC::getVM(lexicalGlobalObject);
9306 auto throwScope = DECLARE_THROW_SCOPE(vm);
9307 UNUSED_PARAM(throwScope);
9308 UNUSED_PARAM(callFrame);
9309 auto& impl = castedThis->wrapped();
9310 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
9311 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
9312 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9313 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
9314 auto data = convert<IDLAllowSharedAdaptor<IDLArrayBufferView>>(*lexicalGlobalObject, argument1.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 1, "data", "WebGL2RenderingContext", "bufferData", "ArrayBufferView"); });
9315 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9316 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
9317 auto usage = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
9318 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9319 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
9320 auto srcOffset = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument3.value());
9321 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9322 EnsureStillAliveScope argument4 = callFrame->argument(4);
9323 auto length = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument4.value());
9324 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9325 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
9326 InspectorCanvasCallTracer::recordAction(impl, "bufferData"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, data), InspectorCanvasCallTracer::processArgument(impl, usage), InspectorCanvasCallTracer::processArgument(impl, srcOffset), InspectorCanvasCallTracer::processArgument(impl, length) });
9327 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.bufferData(WTFMove(target), data.releaseNonNull(), WTFMove(usage), WTFMove(srcOffset), WTFMove(length)); })));
9328}
9329
9330static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_bufferSubData1Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
9331{
9332 auto& vm = JSC::getVM(lexicalGlobalObject);
9333 auto throwScope = DECLARE_THROW_SCOPE(vm);
9334 UNUSED_PARAM(throwScope);
9335 UNUSED_PARAM(callFrame);
9336 auto& impl = castedThis->wrapped();
9337 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
9338 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
9339 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9340 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
9341 auto dstByteOffset = convert<IDLLongLong>(*lexicalGlobalObject, argument1.value());
9342 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9343 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
9344 auto srcData = convert<IDLAllowSharedAdaptor<IDLArrayBufferView>>(*lexicalGlobalObject, argument2.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 2, "srcData", "WebGL2RenderingContext", "bufferSubData", "ArrayBufferView"); });
9345 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9346 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
9347 auto srcOffset = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument3.value());
9348 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9349 EnsureStillAliveScope argument4 = callFrame->argument(4);
9350 auto length = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument4.value());
9351 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9352 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
9353 InspectorCanvasCallTracer::recordAction(impl, "bufferSubData"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, dstByteOffset), InspectorCanvasCallTracer::processArgument(impl, srcData), InspectorCanvasCallTracer::processArgument(impl, srcOffset), InspectorCanvasCallTracer::processArgument(impl, length) });
9354 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.bufferSubData(WTFMove(target), WTFMove(dstByteOffset), srcData.releaseNonNull(), WTFMove(srcOffset), WTFMove(length)); })));
9355}
9356
9357static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_copyBufferSubDataBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
9358{
9359 auto& vm = JSC::getVM(lexicalGlobalObject);
9360 auto throwScope = DECLARE_THROW_SCOPE(vm);
9361 UNUSED_PARAM(throwScope);
9362 UNUSED_PARAM(callFrame);
9363 auto& impl = castedThis->wrapped();
9364 if (UNLIKELY(callFrame->argumentCount() < 5))
9365 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
9366 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
9367 auto readTarget = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
9368 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9369 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
9370 auto writeTarget = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
9371 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9372 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
9373 auto readOffset = convert<IDLLongLong>(*lexicalGlobalObject, argument2.value());
9374 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9375 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
9376 auto writeOffset = convert<IDLLongLong>(*lexicalGlobalObject, argument3.value());
9377 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9378 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
9379 auto size = convert<IDLLongLong>(*lexicalGlobalObject, argument4.value());
9380 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9381 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
9382 InspectorCanvasCallTracer::recordAction(impl, "copyBufferSubData"_s, { InspectorCanvasCallTracer::processArgument(impl, readTarget), InspectorCanvasCallTracer::processArgument(impl, writeTarget), InspectorCanvasCallTracer::processArgument(impl, readOffset), InspectorCanvasCallTracer::processArgument(impl, writeOffset), InspectorCanvasCallTracer::processArgument(impl, size) });
9383 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.copyBufferSubData(WTFMove(readTarget), WTFMove(writeTarget), WTFMove(readOffset), WTFMove(writeOffset), WTFMove(size)); })));
9384}
9385
9386JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_copyBufferSubData, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
9387{
9388 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_copyBufferSubDataBody>(*lexicalGlobalObject, *callFrame, "copyBufferSubData");
9389}
9390
9391static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_getBufferSubDataBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
9392{
9393 auto& vm = JSC::getVM(lexicalGlobalObject);
9394 auto throwScope = DECLARE_THROW_SCOPE(vm);
9395 UNUSED_PARAM(throwScope);
9396 UNUSED_PARAM(callFrame);
9397 auto& impl = castedThis->wrapped();
9398 if (UNLIKELY(callFrame->argumentCount() < 3))
9399 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
9400 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
9401 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
9402 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9403 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
9404 auto srcByteOffset = convert<IDLLongLong>(*lexicalGlobalObject, argument1.value());
9405 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9406 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
9407 auto dstData = convert<IDLAllowSharedAdaptor<IDLArrayBufferView>>(*lexicalGlobalObject, argument2.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 2, "dstData", "WebGL2RenderingContext", "getBufferSubData", "ArrayBufferView"); });
9408 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9409 EnsureStillAliveScope argument3 = callFrame->argument(3);
9410 auto dstOffset = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument3.value());
9411 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9412 EnsureStillAliveScope argument4 = callFrame->argument(4);
9413 auto length = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument4.value());
9414 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9415 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
9416 InspectorCanvasCallTracer::recordAction(impl, "getBufferSubData"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, srcByteOffset), InspectorCanvasCallTracer::processArgument(impl, dstData), InspectorCanvasCallTracer::processArgument(impl, dstOffset), InspectorCanvasCallTracer::processArgument(impl, length) });
9417 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.getBufferSubData(WTFMove(target), WTFMove(srcByteOffset), dstData.releaseNonNull(), WTFMove(dstOffset), WTFMove(length)); })));
9418}
9419
9420JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getBufferSubData, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
9421{
9422 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_getBufferSubDataBody>(*lexicalGlobalObject, *callFrame, "getBufferSubData");
9423}
9424
9425static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_blitFramebufferBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
9426{
9427 auto& vm = JSC::getVM(lexicalGlobalObject);
9428 auto throwScope = DECLARE_THROW_SCOPE(vm);
9429 UNUSED_PARAM(throwScope);
9430 UNUSED_PARAM(callFrame);
9431 auto& impl = castedThis->wrapped();
9432 if (UNLIKELY(callFrame->argumentCount() < 10))
9433 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
9434 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
9435 auto srcX0 = convert<IDLLong>(*lexicalGlobalObject, argument0.value());
9436 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9437 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
9438 auto srcY0 = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
9439 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9440 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
9441 auto srcX1 = convert<IDLLong>(*lexicalGlobalObject, argument2.value());
9442 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9443 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
9444 auto srcY1 = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
9445 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9446 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
9447 auto dstX0 = convert<IDLLong>(*lexicalGlobalObject, argument4.value());
9448 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9449 EnsureStillAliveScope argument5 = callFrame->uncheckedArgument(5);
9450 auto dstY0 = convert<IDLLong>(*lexicalGlobalObject, argument5.value());
9451 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9452 EnsureStillAliveScope argument6 = callFrame->uncheckedArgument(6);
9453 auto dstX1 = convert<IDLLong>(*lexicalGlobalObject, argument6.value());
9454 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9455 EnsureStillAliveScope argument7 = callFrame->uncheckedArgument(7);
9456 auto dstY1 = convert<IDLLong>(*lexicalGlobalObject, argument7.value());
9457 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9458 EnsureStillAliveScope argument8 = callFrame->uncheckedArgument(8);
9459 auto mask = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument8.value());
9460 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9461 EnsureStillAliveScope argument9 = callFrame->uncheckedArgument(9);
9462 auto filter = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument9.value());
9463 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9464 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
9465 InspectorCanvasCallTracer::recordAction(impl, "blitFramebuffer"_s, { InspectorCanvasCallTracer::processArgument(impl, srcX0), InspectorCanvasCallTracer::processArgument(impl, srcY0), InspectorCanvasCallTracer::processArgument(impl, srcX1), InspectorCanvasCallTracer::processArgument(impl, srcY1), InspectorCanvasCallTracer::processArgument(impl, dstX0), InspectorCanvasCallTracer::processArgument(impl, dstY0), InspectorCanvasCallTracer::processArgument(impl, dstX1), InspectorCanvasCallTracer::processArgument(impl, dstY1), InspectorCanvasCallTracer::processArgument(impl, mask), InspectorCanvasCallTracer::processArgument(impl, filter) });
9466 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.blitFramebuffer(WTFMove(srcX0), WTFMove(srcY0), WTFMove(srcX1), WTFMove(srcY1), WTFMove(dstX0), WTFMove(dstY0), WTFMove(dstX1), WTFMove(dstY1), WTFMove(mask), WTFMove(filter)); })));
9467}
9468
9469JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_blitFramebuffer, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
9470{
9471 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_blitFramebufferBody>(*lexicalGlobalObject, *callFrame, "blitFramebuffer");
9472}
9473
9474static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_framebufferTextureLayerBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
9475{
9476 auto& vm = JSC::getVM(lexicalGlobalObject);
9477 auto throwScope = DECLARE_THROW_SCOPE(vm);
9478 UNUSED_PARAM(throwScope);
9479 UNUSED_PARAM(callFrame);
9480 auto& impl = castedThis->wrapped();
9481 if (UNLIKELY(callFrame->argumentCount() < 5))
9482 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
9483 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
9484 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
9485 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9486 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
9487 auto attachment = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
9488 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9489 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
9490 auto texture = convert<IDLNullable<IDLInterface<WebGLTexture>>>(*lexicalGlobalObject, argument2.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 2, "texture", "WebGL2RenderingContext", "framebufferTextureLayer", "WebGLTexture"); });
9491 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9492 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
9493 auto level = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
9494 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9495 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
9496 auto layer = convert<IDLLong>(*lexicalGlobalObject, argument4.value());
9497 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9498 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
9499 InspectorCanvasCallTracer::recordAction(impl, "framebufferTextureLayer"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, attachment), InspectorCanvasCallTracer::processArgument(impl, texture), InspectorCanvasCallTracer::processArgument(impl, level), InspectorCanvasCallTracer::processArgument(impl, layer) });
9500 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.framebufferTextureLayer(WTFMove(target), WTFMove(attachment), WTFMove(texture), WTFMove(level), WTFMove(layer)); })));
9501}
9502
9503JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_framebufferTextureLayer, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
9504{
9505 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_framebufferTextureLayerBody>(*lexicalGlobalObject, *callFrame, "framebufferTextureLayer");
9506}
9507
9508static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_invalidateFramebufferBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
9509{
9510 auto& vm = JSC::getVM(lexicalGlobalObject);
9511 auto throwScope = DECLARE_THROW_SCOPE(vm);
9512 UNUSED_PARAM(throwScope);
9513 UNUSED_PARAM(callFrame);
9514 auto& impl = castedThis->wrapped();
9515 if (UNLIKELY(callFrame->argumentCount() < 2))
9516 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
9517 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
9518 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
9519 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9520 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
9521 auto attachments = convert<IDLSequence<IDLUnsignedLong>>(*lexicalGlobalObject, argument1.value());
9522 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9523 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
9524 InspectorCanvasCallTracer::recordAction(impl, "invalidateFramebuffer"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, attachments) });
9525 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.invalidateFramebuffer(WTFMove(target), WTFMove(attachments)); })));
9526}
9527
9528JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_invalidateFramebuffer, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
9529{
9530 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_invalidateFramebufferBody>(*lexicalGlobalObject, *callFrame, "invalidateFramebuffer");
9531}
9532
9533static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_invalidateSubFramebufferBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
9534{
9535 auto& vm = JSC::getVM(lexicalGlobalObject);
9536 auto throwScope = DECLARE_THROW_SCOPE(vm);
9537 UNUSED_PARAM(throwScope);
9538 UNUSED_PARAM(callFrame);
9539 auto& impl = castedThis->wrapped();
9540 if (UNLIKELY(callFrame->argumentCount() < 6))
9541 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
9542 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
9543 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
9544 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9545 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
9546 auto attachments = convert<IDLSequence<IDLUnsignedLong>>(*lexicalGlobalObject, argument1.value());
9547 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9548 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
9549 auto x = convert<IDLLong>(*lexicalGlobalObject, argument2.value());
9550 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9551 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
9552 auto y = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
9553 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9554 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
9555 auto width = convert<IDLLong>(*lexicalGlobalObject, argument4.value());
9556 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9557 EnsureStillAliveScope argument5 = callFrame->uncheckedArgument(5);
9558 auto height = convert<IDLLong>(*lexicalGlobalObject, argument5.value());
9559 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9560 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
9561 InspectorCanvasCallTracer::recordAction(impl, "invalidateSubFramebuffer"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, attachments), InspectorCanvasCallTracer::processArgument(impl, x), InspectorCanvasCallTracer::processArgument(impl, y), InspectorCanvasCallTracer::processArgument(impl, width), InspectorCanvasCallTracer::processArgument(impl, height) });
9562 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.invalidateSubFramebuffer(WTFMove(target), WTFMove(attachments), WTFMove(x), WTFMove(y), WTFMove(width), WTFMove(height)); })));
9563}
9564
9565JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_invalidateSubFramebuffer, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
9566{
9567 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_invalidateSubFramebufferBody>(*lexicalGlobalObject, *callFrame, "invalidateSubFramebuffer");
9568}
9569
9570static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_readBufferBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
9571{
9572 auto& vm = JSC::getVM(lexicalGlobalObject);
9573 auto throwScope = DECLARE_THROW_SCOPE(vm);
9574 UNUSED_PARAM(throwScope);
9575 UNUSED_PARAM(callFrame);
9576 auto& impl = castedThis->wrapped();
9577 if (UNLIKELY(callFrame->argumentCount() < 1))
9578 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
9579 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
9580 auto src = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
9581 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9582 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
9583 InspectorCanvasCallTracer::recordAction(impl, "readBuffer"_s, { InspectorCanvasCallTracer::processArgument(impl, src) });
9584 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.readBuffer(WTFMove(src)); })));
9585}
9586
9587JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_readBuffer, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
9588{
9589 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_readBufferBody>(*lexicalGlobalObject, *callFrame, "readBuffer");
9590}
9591
9592static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_getInternalformatParameterBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
9593{
9594 auto& vm = JSC::getVM(lexicalGlobalObject);
9595 auto throwScope = DECLARE_THROW_SCOPE(vm);
9596 UNUSED_PARAM(throwScope);
9597 UNUSED_PARAM(callFrame);
9598 auto& impl = castedThis->wrapped();
9599 if (UNLIKELY(callFrame->argumentCount() < 3))
9600 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
9601 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
9602 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
9603 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9604 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
9605 auto internalformat = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
9606 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9607 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
9608 auto pname = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
9609 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9610 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
9611 InspectorCanvasCallTracer::recordAction(impl, "getInternalformatParameter"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, internalformat), InspectorCanvasCallTracer::processArgument(impl, pname) });
9612 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLWebGLAny>(*lexicalGlobalObject, *castedThis->globalObject(), throwScope, impl.getInternalformatParameter(WTFMove(target), WTFMove(internalformat), WTFMove(pname)))));
9613}
9614
9615JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getInternalformatParameter, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
9616{
9617 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_getInternalformatParameterBody>(*lexicalGlobalObject, *callFrame, "getInternalformatParameter");
9618}
9619
9620static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_renderbufferStorageMultisampleBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
9621{
9622 auto& vm = JSC::getVM(lexicalGlobalObject);
9623 auto throwScope = DECLARE_THROW_SCOPE(vm);
9624 UNUSED_PARAM(throwScope);
9625 UNUSED_PARAM(callFrame);
9626 auto& impl = castedThis->wrapped();
9627 if (UNLIKELY(callFrame->argumentCount() < 5))
9628 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
9629 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
9630 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
9631 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9632 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
9633 auto samples = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
9634 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9635 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
9636 auto internalformat = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
9637 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9638 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
9639 auto width = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
9640 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9641 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
9642 auto height = convert<IDLLong>(*lexicalGlobalObject, argument4.value());
9643 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9644 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
9645 InspectorCanvasCallTracer::recordAction(impl, "renderbufferStorageMultisample"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, samples), InspectorCanvasCallTracer::processArgument(impl, internalformat), InspectorCanvasCallTracer::processArgument(impl, width), InspectorCanvasCallTracer::processArgument(impl, height) });
9646 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.renderbufferStorageMultisample(WTFMove(target), WTFMove(samples), WTFMove(internalformat), WTFMove(width), WTFMove(height)); })));
9647}
9648
9649JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_renderbufferStorageMultisample, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
9650{
9651 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_renderbufferStorageMultisampleBody>(*lexicalGlobalObject, *callFrame, "renderbufferStorageMultisample");
9652}
9653
9654static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_texStorage2DBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
9655{
9656 auto& vm = JSC::getVM(lexicalGlobalObject);
9657 auto throwScope = DECLARE_THROW_SCOPE(vm);
9658 UNUSED_PARAM(throwScope);
9659 UNUSED_PARAM(callFrame);
9660 auto& impl = castedThis->wrapped();
9661 if (UNLIKELY(callFrame->argumentCount() < 5))
9662 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
9663 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
9664 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
9665 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9666 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
9667 auto levels = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
9668 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9669 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
9670 auto internalformat = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
9671 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9672 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
9673 auto width = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
9674 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9675 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
9676 auto height = convert<IDLLong>(*lexicalGlobalObject, argument4.value());
9677 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9678 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
9679 InspectorCanvasCallTracer::recordAction(impl, "texStorage2D"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, levels), InspectorCanvasCallTracer::processArgument(impl, internalformat), InspectorCanvasCallTracer::processArgument(impl, width), InspectorCanvasCallTracer::processArgument(impl, height) });
9680 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.texStorage2D(WTFMove(target), WTFMove(levels), WTFMove(internalformat), WTFMove(width), WTFMove(height)); })));
9681}
9682
9683JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_texStorage2D, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
9684{
9685 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_texStorage2DBody>(*lexicalGlobalObject, *callFrame, "texStorage2D");
9686}
9687
9688static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_texStorage3DBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
9689{
9690 auto& vm = JSC::getVM(lexicalGlobalObject);
9691 auto throwScope = DECLARE_THROW_SCOPE(vm);
9692 UNUSED_PARAM(throwScope);
9693 UNUSED_PARAM(callFrame);
9694 auto& impl = castedThis->wrapped();
9695 if (UNLIKELY(callFrame->argumentCount() < 6))
9696 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
9697 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
9698 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
9699 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9700 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
9701 auto levels = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
9702 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9703 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
9704 auto internalformat = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
9705 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9706 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
9707 auto width = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
9708 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9709 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
9710 auto height = convert<IDLLong>(*lexicalGlobalObject, argument4.value());
9711 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9712 EnsureStillAliveScope argument5 = callFrame->uncheckedArgument(5);
9713 auto depth = convert<IDLLong>(*lexicalGlobalObject, argument5.value());
9714 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9715 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
9716 InspectorCanvasCallTracer::recordAction(impl, "texStorage3D"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, levels), InspectorCanvasCallTracer::processArgument(impl, internalformat), InspectorCanvasCallTracer::processArgument(impl, width), InspectorCanvasCallTracer::processArgument(impl, height), InspectorCanvasCallTracer::processArgument(impl, depth) });
9717 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.texStorage3D(WTFMove(target), WTFMove(levels), WTFMove(internalformat), WTFMove(width), WTFMove(height), WTFMove(depth)); })));
9718}
9719
9720JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_texStorage3D, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
9721{
9722 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_texStorage3DBody>(*lexicalGlobalObject, *callFrame, "texStorage3D");
9723}
9724
9725static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_texImage3D1Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
9726{
9727 auto& vm = JSC::getVM(lexicalGlobalObject);
9728 auto throwScope = DECLARE_THROW_SCOPE(vm);
9729 UNUSED_PARAM(throwScope);
9730 UNUSED_PARAM(callFrame);
9731 auto& impl = castedThis->wrapped();
9732 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
9733 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
9734 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9735 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
9736 auto level = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
9737 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9738 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
9739 auto internalformat = convert<IDLLong>(*lexicalGlobalObject, argument2.value());
9740 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9741 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
9742 auto width = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
9743 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9744 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
9745 auto height = convert<IDLLong>(*lexicalGlobalObject, argument4.value());
9746 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9747 EnsureStillAliveScope argument5 = callFrame->uncheckedArgument(5);
9748 auto depth = convert<IDLLong>(*lexicalGlobalObject, argument5.value());
9749 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9750 EnsureStillAliveScope argument6 = callFrame->uncheckedArgument(6);
9751 auto border = convert<IDLLong>(*lexicalGlobalObject, argument6.value());
9752 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9753 EnsureStillAliveScope argument7 = callFrame->uncheckedArgument(7);
9754 auto format = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument7.value());
9755 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9756 EnsureStillAliveScope argument8 = callFrame->uncheckedArgument(8);
9757 auto type = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument8.value());
9758 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9759 EnsureStillAliveScope argument9 = callFrame->uncheckedArgument(9);
9760 auto pboOffset = convert<IDLLongLong>(*lexicalGlobalObject, argument9.value());
9761 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9762 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
9763 InspectorCanvasCallTracer::recordAction(impl, "texImage3D"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, level), InspectorCanvasCallTracer::processArgument(impl, internalformat), InspectorCanvasCallTracer::processArgument(impl, width), InspectorCanvasCallTracer::processArgument(impl, height), InspectorCanvasCallTracer::processArgument(impl, depth), InspectorCanvasCallTracer::processArgument(impl, border), InspectorCanvasCallTracer::processArgument(impl, format), InspectorCanvasCallTracer::processArgument(impl, type), InspectorCanvasCallTracer::processArgument(impl, pboOffset) });
9764 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.texImage3D(WTFMove(target), WTFMove(level), WTFMove(internalformat), WTFMove(width), WTFMove(height), WTFMove(depth), WTFMove(border), WTFMove(format), WTFMove(type), WTFMove(pboOffset)); })));
9765}
9766
9767static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_texImage3D2Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
9768{
9769 auto& vm = JSC::getVM(lexicalGlobalObject);
9770 auto throwScope = DECLARE_THROW_SCOPE(vm);
9771 UNUSED_PARAM(throwScope);
9772 UNUSED_PARAM(callFrame);
9773 auto& impl = castedThis->wrapped();
9774 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
9775 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
9776 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9777 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
9778 auto level = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
9779 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9780 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
9781 auto internalformat = convert<IDLLong>(*lexicalGlobalObject, argument2.value());
9782 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9783 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
9784 auto width = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
9785 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9786 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
9787 auto height = convert<IDLLong>(*lexicalGlobalObject, argument4.value());
9788 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9789 EnsureStillAliveScope argument5 = callFrame->uncheckedArgument(5);
9790 auto depth = convert<IDLLong>(*lexicalGlobalObject, argument5.value());
9791 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9792 EnsureStillAliveScope argument6 = callFrame->uncheckedArgument(6);
9793 auto border = convert<IDLLong>(*lexicalGlobalObject, argument6.value());
9794 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9795 EnsureStillAliveScope argument7 = callFrame->uncheckedArgument(7);
9796 auto format = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument7.value());
9797 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9798 EnsureStillAliveScope argument8 = callFrame->uncheckedArgument(8);
9799 auto type = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument8.value());
9800 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9801 EnsureStillAliveScope argument9 = callFrame->uncheckedArgument(9);
9802 auto source = convert<IDLUnion<IDLInterface<ImageBitmap>, IDLInterface<ImageData>, IDLInterface<HTMLImageElement>, IDLInterface<HTMLCanvasElement>, IDLInterface<HTMLVideoElement>>>(*lexicalGlobalObject, argument9.value());
9803 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9804 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
9805 InspectorCanvasCallTracer::recordAction(impl, "texImage3D"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, level), InspectorCanvasCallTracer::processArgument(impl, internalformat), InspectorCanvasCallTracer::processArgument(impl, width), InspectorCanvasCallTracer::processArgument(impl, height), InspectorCanvasCallTracer::processArgument(impl, depth), InspectorCanvasCallTracer::processArgument(impl, border), InspectorCanvasCallTracer::processArgument(impl, format), InspectorCanvasCallTracer::processArgument(impl, type), InspectorCanvasCallTracer::processArgument(impl, source) });
9806 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.texImage3D(WTFMove(target), WTFMove(level), WTFMove(internalformat), WTFMove(width), WTFMove(height), WTFMove(depth), WTFMove(border), WTFMove(format), WTFMove(type), WTFMove(source)); })));
9807}
9808
9809static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_texImage3D3Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
9810{
9811 auto& vm = JSC::getVM(lexicalGlobalObject);
9812 auto throwScope = DECLARE_THROW_SCOPE(vm);
9813 UNUSED_PARAM(throwScope);
9814 UNUSED_PARAM(callFrame);
9815 auto& impl = castedThis->wrapped();
9816 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
9817 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
9818 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9819 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
9820 auto level = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
9821 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9822 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
9823 auto internalformat = convert<IDLLong>(*lexicalGlobalObject, argument2.value());
9824 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9825 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
9826 auto width = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
9827 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9828 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
9829 auto height = convert<IDLLong>(*lexicalGlobalObject, argument4.value());
9830 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9831 EnsureStillAliveScope argument5 = callFrame->uncheckedArgument(5);
9832 auto depth = convert<IDLLong>(*lexicalGlobalObject, argument5.value());
9833 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9834 EnsureStillAliveScope argument6 = callFrame->uncheckedArgument(6);
9835 auto border = convert<IDLLong>(*lexicalGlobalObject, argument6.value());
9836 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9837 EnsureStillAliveScope argument7 = callFrame->uncheckedArgument(7);
9838 auto format = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument7.value());
9839 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9840 EnsureStillAliveScope argument8 = callFrame->uncheckedArgument(8);
9841 auto type = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument8.value());
9842 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9843 EnsureStillAliveScope argument9 = callFrame->uncheckedArgument(9);
9844 auto pixels = convert<IDLNullable<IDLAllowSharedAdaptor<IDLArrayBufferView>>>(*lexicalGlobalObject, argument9.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 9, "pixels", "WebGL2RenderingContext", "texImage3D", "ArrayBufferView"); });
9845 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9846 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
9847 InspectorCanvasCallTracer::recordAction(impl, "texImage3D"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, level), InspectorCanvasCallTracer::processArgument(impl, internalformat), InspectorCanvasCallTracer::processArgument(impl, width), InspectorCanvasCallTracer::processArgument(impl, height), InspectorCanvasCallTracer::processArgument(impl, depth), InspectorCanvasCallTracer::processArgument(impl, border), InspectorCanvasCallTracer::processArgument(impl, format), InspectorCanvasCallTracer::processArgument(impl, type), InspectorCanvasCallTracer::processArgument(impl, pixels) });
9848 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.texImage3D(WTFMove(target), WTFMove(level), WTFMove(internalformat), WTFMove(width), WTFMove(height), WTFMove(depth), WTFMove(border), WTFMove(format), WTFMove(type), WTFMove(pixels)); })));
9849}
9850
9851static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_texImage3D4Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
9852{
9853 auto& vm = JSC::getVM(lexicalGlobalObject);
9854 auto throwScope = DECLARE_THROW_SCOPE(vm);
9855 UNUSED_PARAM(throwScope);
9856 UNUSED_PARAM(callFrame);
9857 auto& impl = castedThis->wrapped();
9858 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
9859 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
9860 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9861 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
9862 auto level = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
9863 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9864 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
9865 auto internalformat = convert<IDLLong>(*lexicalGlobalObject, argument2.value());
9866 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9867 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
9868 auto width = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
9869 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9870 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
9871 auto height = convert<IDLLong>(*lexicalGlobalObject, argument4.value());
9872 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9873 EnsureStillAliveScope argument5 = callFrame->uncheckedArgument(5);
9874 auto depth = convert<IDLLong>(*lexicalGlobalObject, argument5.value());
9875 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9876 EnsureStillAliveScope argument6 = callFrame->uncheckedArgument(6);
9877 auto border = convert<IDLLong>(*lexicalGlobalObject, argument6.value());
9878 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9879 EnsureStillAliveScope argument7 = callFrame->uncheckedArgument(7);
9880 auto format = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument7.value());
9881 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9882 EnsureStillAliveScope argument8 = callFrame->uncheckedArgument(8);
9883 auto type = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument8.value());
9884 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9885 EnsureStillAliveScope argument9 = callFrame->uncheckedArgument(9);
9886 auto srcData = convert<IDLAllowSharedAdaptor<IDLArrayBufferView>>(*lexicalGlobalObject, argument9.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 9, "srcData", "WebGL2RenderingContext", "texImage3D", "ArrayBufferView"); });
9887 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9888 EnsureStillAliveScope argument10 = callFrame->uncheckedArgument(10);
9889 auto srcOffset = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument10.value());
9890 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9891 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
9892 InspectorCanvasCallTracer::recordAction(impl, "texImage3D"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, level), InspectorCanvasCallTracer::processArgument(impl, internalformat), InspectorCanvasCallTracer::processArgument(impl, width), InspectorCanvasCallTracer::processArgument(impl, height), InspectorCanvasCallTracer::processArgument(impl, depth), InspectorCanvasCallTracer::processArgument(impl, border), InspectorCanvasCallTracer::processArgument(impl, format), InspectorCanvasCallTracer::processArgument(impl, type), InspectorCanvasCallTracer::processArgument(impl, srcData), InspectorCanvasCallTracer::processArgument(impl, srcOffset) });
9893 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.texImage3D(WTFMove(target), WTFMove(level), WTFMove(internalformat), WTFMove(width), WTFMove(height), WTFMove(depth), WTFMove(border), WTFMove(format), WTFMove(type), srcData.releaseNonNull(), WTFMove(srcOffset)); })));
9894}
9895
9896static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_texImage3DOverloadDispatcher(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
9897{
9898 auto& vm = JSC::getVM(lexicalGlobalObject);
9899 auto throwScope = DECLARE_THROW_SCOPE(vm);
9900 UNUSED_PARAM(throwScope);
9901 UNUSED_PARAM(callFrame);
9902 size_t argsCount = std::min<size_t>(11, callFrame->argumentCount());
9903 if (argsCount == 10) {
9904 JSValue distinguishingArg = callFrame->uncheckedArgument(9);
9905 if (distinguishingArg.isUndefinedOrNull())
9906 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_texImage3D3Body(lexicalGlobalObject, callFrame, castedThis)));
9907 if (distinguishingArg.isObject() && asObject(distinguishingArg)->inherits<JSImageBitmap>(vm))
9908 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_texImage3D2Body(lexicalGlobalObject, callFrame, castedThis)));
9909 if (distinguishingArg.isObject() && asObject(distinguishingArg)->inherits<JSImageData>(vm))
9910 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_texImage3D2Body(lexicalGlobalObject, callFrame, castedThis)));
9911 if (distinguishingArg.isObject() && asObject(distinguishingArg)->inherits<JSHTMLImageElement>(vm))
9912 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_texImage3D2Body(lexicalGlobalObject, callFrame, castedThis)));
9913 if (distinguishingArg.isObject() && asObject(distinguishingArg)->inherits<JSHTMLCanvasElement>(vm))
9914 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_texImage3D2Body(lexicalGlobalObject, callFrame, castedThis)));
9915 if (distinguishingArg.isObject() && asObject(distinguishingArg)->inherits<JSHTMLVideoElement>(vm))
9916 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_texImage3D2Body(lexicalGlobalObject, callFrame, castedThis)));
9917 if (distinguishingArg.isObject() && asObject(distinguishingArg)->inherits<JSArrayBufferView>(vm))
9918 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_texImage3D3Body(lexicalGlobalObject, callFrame, castedThis)));
9919 if (distinguishingArg.isNumber())
9920 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_texImage3D1Body(lexicalGlobalObject, callFrame, castedThis)));
9921 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_texImage3D1Body(lexicalGlobalObject, callFrame, castedThis)));
9922 }
9923 if (argsCount == 11) {
9924 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_texImage3D4Body(lexicalGlobalObject, callFrame, castedThis)));
9925 }
9926 return argsCount < 10 ? throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject)) : throwVMTypeError(lexicalGlobalObject, throwScope);
9927}
9928
9929JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_texImage3D, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
9930{
9931 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_texImage3DOverloadDispatcher>(*lexicalGlobalObject, *callFrame, "texImage3D");
9932}
9933
9934static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_texSubImage3D1Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
9935{
9936 auto& vm = JSC::getVM(lexicalGlobalObject);
9937 auto throwScope = DECLARE_THROW_SCOPE(vm);
9938 UNUSED_PARAM(throwScope);
9939 UNUSED_PARAM(callFrame);
9940 auto& impl = castedThis->wrapped();
9941 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
9942 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
9943 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9944 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
9945 auto level = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
9946 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9947 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
9948 auto xoffset = convert<IDLLong>(*lexicalGlobalObject, argument2.value());
9949 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9950 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
9951 auto yoffset = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
9952 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9953 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
9954 auto zoffset = convert<IDLLong>(*lexicalGlobalObject, argument4.value());
9955 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9956 EnsureStillAliveScope argument5 = callFrame->uncheckedArgument(5);
9957 auto width = convert<IDLLong>(*lexicalGlobalObject, argument5.value());
9958 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9959 EnsureStillAliveScope argument6 = callFrame->uncheckedArgument(6);
9960 auto height = convert<IDLLong>(*lexicalGlobalObject, argument6.value());
9961 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9962 EnsureStillAliveScope argument7 = callFrame->uncheckedArgument(7);
9963 auto depth = convert<IDLLong>(*lexicalGlobalObject, argument7.value());
9964 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9965 EnsureStillAliveScope argument8 = callFrame->uncheckedArgument(8);
9966 auto format = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument8.value());
9967 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9968 EnsureStillAliveScope argument9 = callFrame->uncheckedArgument(9);
9969 auto type = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument9.value());
9970 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9971 EnsureStillAliveScope argument10 = callFrame->uncheckedArgument(10);
9972 auto pboOffset = convert<IDLLongLong>(*lexicalGlobalObject, argument10.value());
9973 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9974 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
9975 InspectorCanvasCallTracer::recordAction(impl, "texSubImage3D"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, level), InspectorCanvasCallTracer::processArgument(impl, xoffset), InspectorCanvasCallTracer::processArgument(impl, yoffset), InspectorCanvasCallTracer::processArgument(impl, zoffset), InspectorCanvasCallTracer::processArgument(impl, width), InspectorCanvasCallTracer::processArgument(impl, height), InspectorCanvasCallTracer::processArgument(impl, depth), InspectorCanvasCallTracer::processArgument(impl, format), InspectorCanvasCallTracer::processArgument(impl, type), InspectorCanvasCallTracer::processArgument(impl, pboOffset) });
9976 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.texSubImage3D(WTFMove(target), WTFMove(level), WTFMove(xoffset), WTFMove(yoffset), WTFMove(zoffset), WTFMove(width), WTFMove(height), WTFMove(depth), WTFMove(format), WTFMove(type), WTFMove(pboOffset)); })));
9977}
9978
9979static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_texSubImage3D2Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
9980{
9981 auto& vm = JSC::getVM(lexicalGlobalObject);
9982 auto throwScope = DECLARE_THROW_SCOPE(vm);
9983 UNUSED_PARAM(throwScope);
9984 UNUSED_PARAM(callFrame);
9985 auto& impl = castedThis->wrapped();
9986 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
9987 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
9988 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9989 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
9990 auto level = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
9991 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9992 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
9993 auto xoffset = convert<IDLLong>(*lexicalGlobalObject, argument2.value());
9994 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9995 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
9996 auto yoffset = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
9997 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
9998 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
9999 auto zoffset = convert<IDLLong>(*lexicalGlobalObject, argument4.value());
10000 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10001 EnsureStillAliveScope argument5 = callFrame->uncheckedArgument(5);
10002 auto width = convert<IDLLong>(*lexicalGlobalObject, argument5.value());
10003 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10004 EnsureStillAliveScope argument6 = callFrame->uncheckedArgument(6);
10005 auto height = convert<IDLLong>(*lexicalGlobalObject, argument6.value());
10006 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10007 EnsureStillAliveScope argument7 = callFrame->uncheckedArgument(7);
10008 auto depth = convert<IDLLong>(*lexicalGlobalObject, argument7.value());
10009 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10010 EnsureStillAliveScope argument8 = callFrame->uncheckedArgument(8);
10011 auto format = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument8.value());
10012 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10013 EnsureStillAliveScope argument9 = callFrame->uncheckedArgument(9);
10014 auto type = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument9.value());
10015 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10016 EnsureStillAliveScope argument10 = callFrame->uncheckedArgument(10);
10017 auto source = convert<IDLUnion<IDLInterface<ImageBitmap>, IDLInterface<ImageData>, IDLInterface<HTMLImageElement>, IDLInterface<HTMLCanvasElement>, IDLInterface<HTMLVideoElement>>>(*lexicalGlobalObject, argument10.value());
10018 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10019 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
10020 InspectorCanvasCallTracer::recordAction(impl, "texSubImage3D"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, level), InspectorCanvasCallTracer::processArgument(impl, xoffset), InspectorCanvasCallTracer::processArgument(impl, yoffset), InspectorCanvasCallTracer::processArgument(impl, zoffset), InspectorCanvasCallTracer::processArgument(impl, width), InspectorCanvasCallTracer::processArgument(impl, height), InspectorCanvasCallTracer::processArgument(impl, depth), InspectorCanvasCallTracer::processArgument(impl, format), InspectorCanvasCallTracer::processArgument(impl, type), InspectorCanvasCallTracer::processArgument(impl, source) });
10021 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.texSubImage3D(WTFMove(target), WTFMove(level), WTFMove(xoffset), WTFMove(yoffset), WTFMove(zoffset), WTFMove(width), WTFMove(height), WTFMove(depth), WTFMove(format), WTFMove(type), WTFMove(source)); })));
10022}
10023
10024static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_texSubImage3D3Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
10025{
10026 auto& vm = JSC::getVM(lexicalGlobalObject);
10027 auto throwScope = DECLARE_THROW_SCOPE(vm);
10028 UNUSED_PARAM(throwScope);
10029 UNUSED_PARAM(callFrame);
10030 auto& impl = castedThis->wrapped();
10031 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
10032 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
10033 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10034 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
10035 auto level = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
10036 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10037 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
10038 auto xoffset = convert<IDLLong>(*lexicalGlobalObject, argument2.value());
10039 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10040 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
10041 auto yoffset = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
10042 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10043 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
10044 auto zoffset = convert<IDLLong>(*lexicalGlobalObject, argument4.value());
10045 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10046 EnsureStillAliveScope argument5 = callFrame->uncheckedArgument(5);
10047 auto width = convert<IDLLong>(*lexicalGlobalObject, argument5.value());
10048 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10049 EnsureStillAliveScope argument6 = callFrame->uncheckedArgument(6);
10050 auto height = convert<IDLLong>(*lexicalGlobalObject, argument6.value());
10051 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10052 EnsureStillAliveScope argument7 = callFrame->uncheckedArgument(7);
10053 auto depth = convert<IDLLong>(*lexicalGlobalObject, argument7.value());
10054 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10055 EnsureStillAliveScope argument8 = callFrame->uncheckedArgument(8);
10056 auto format = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument8.value());
10057 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10058 EnsureStillAliveScope argument9 = callFrame->uncheckedArgument(9);
10059 auto type = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument9.value());
10060 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10061 EnsureStillAliveScope argument10 = callFrame->uncheckedArgument(10);
10062 auto srcData = convert<IDLNullable<IDLAllowSharedAdaptor<IDLArrayBufferView>>>(*lexicalGlobalObject, argument10.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 10, "srcData", "WebGL2RenderingContext", "texSubImage3D", "ArrayBufferView"); });
10063 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10064 EnsureStillAliveScope argument11 = callFrame->argument(11);
10065 auto srcOffset = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument11.value());
10066 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10067 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
10068 InspectorCanvasCallTracer::recordAction(impl, "texSubImage3D"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, level), InspectorCanvasCallTracer::processArgument(impl, xoffset), InspectorCanvasCallTracer::processArgument(impl, yoffset), InspectorCanvasCallTracer::processArgument(impl, zoffset), InspectorCanvasCallTracer::processArgument(impl, width), InspectorCanvasCallTracer::processArgument(impl, height), InspectorCanvasCallTracer::processArgument(impl, depth), InspectorCanvasCallTracer::processArgument(impl, format), InspectorCanvasCallTracer::processArgument(impl, type), InspectorCanvasCallTracer::processArgument(impl, srcData), InspectorCanvasCallTracer::processArgument(impl, srcOffset) });
10069 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.texSubImage3D(WTFMove(target), WTFMove(level), WTFMove(xoffset), WTFMove(yoffset), WTFMove(zoffset), WTFMove(width), WTFMove(height), WTFMove(depth), WTFMove(format), WTFMove(type), WTFMove(srcData), WTFMove(srcOffset)); })));
10070}
10071
10072static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_texSubImage3DOverloadDispatcher(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
10073{
10074 auto& vm = JSC::getVM(lexicalGlobalObject);
10075 auto throwScope = DECLARE_THROW_SCOPE(vm);
10076 UNUSED_PARAM(throwScope);
10077 UNUSED_PARAM(callFrame);
10078 size_t argsCount = std::min<size_t>(12, callFrame->argumentCount());
10079 if (argsCount == 11) {
10080 JSValue distinguishingArg = callFrame->uncheckedArgument(10);
10081 if (distinguishingArg.isUndefinedOrNull())
10082 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_texSubImage3D3Body(lexicalGlobalObject, callFrame, castedThis)));
10083 if (distinguishingArg.isObject() && asObject(distinguishingArg)->inherits<JSImageBitmap>(vm))
10084 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_texSubImage3D2Body(lexicalGlobalObject, callFrame, castedThis)));
10085 if (distinguishingArg.isObject() && asObject(distinguishingArg)->inherits<JSImageData>(vm))
10086 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_texSubImage3D2Body(lexicalGlobalObject, callFrame, castedThis)));
10087 if (distinguishingArg.isObject() && asObject(distinguishingArg)->inherits<JSHTMLImageElement>(vm))
10088 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_texSubImage3D2Body(lexicalGlobalObject, callFrame, castedThis)));
10089 if (distinguishingArg.isObject() && asObject(distinguishingArg)->inherits<JSHTMLCanvasElement>(vm))
10090 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_texSubImage3D2Body(lexicalGlobalObject, callFrame, castedThis)));
10091 if (distinguishingArg.isObject() && asObject(distinguishingArg)->inherits<JSHTMLVideoElement>(vm))
10092 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_texSubImage3D2Body(lexicalGlobalObject, callFrame, castedThis)));
10093 if (distinguishingArg.isObject() && asObject(distinguishingArg)->inherits<JSArrayBufferView>(vm))
10094 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_texSubImage3D3Body(lexicalGlobalObject, callFrame, castedThis)));
10095 if (distinguishingArg.isNumber())
10096 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_texSubImage3D1Body(lexicalGlobalObject, callFrame, castedThis)));
10097 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_texSubImage3D1Body(lexicalGlobalObject, callFrame, castedThis)));
10098 }
10099 if (argsCount == 12) {
10100 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_texSubImage3D3Body(lexicalGlobalObject, callFrame, castedThis)));
10101 }
10102 return argsCount < 11 ? throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject)) : throwVMTypeError(lexicalGlobalObject, throwScope);
10103}
10104
10105JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_texSubImage3D, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
10106{
10107 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_texSubImage3DOverloadDispatcher>(*lexicalGlobalObject, *callFrame, "texSubImage3D");
10108}
10109
10110static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_copyTexSubImage3DBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
10111{
10112 auto& vm = JSC::getVM(lexicalGlobalObject);
10113 auto throwScope = DECLARE_THROW_SCOPE(vm);
10114 UNUSED_PARAM(throwScope);
10115 UNUSED_PARAM(callFrame);
10116 auto& impl = castedThis->wrapped();
10117 if (UNLIKELY(callFrame->argumentCount() < 9))
10118 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
10119 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
10120 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
10121 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10122 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
10123 auto level = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
10124 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10125 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
10126 auto xoffset = convert<IDLLong>(*lexicalGlobalObject, argument2.value());
10127 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10128 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
10129 auto yoffset = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
10130 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10131 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
10132 auto zoffset = convert<IDLLong>(*lexicalGlobalObject, argument4.value());
10133 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10134 EnsureStillAliveScope argument5 = callFrame->uncheckedArgument(5);
10135 auto x = convert<IDLLong>(*lexicalGlobalObject, argument5.value());
10136 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10137 EnsureStillAliveScope argument6 = callFrame->uncheckedArgument(6);
10138 auto y = convert<IDLLong>(*lexicalGlobalObject, argument6.value());
10139 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10140 EnsureStillAliveScope argument7 = callFrame->uncheckedArgument(7);
10141 auto width = convert<IDLLong>(*lexicalGlobalObject, argument7.value());
10142 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10143 EnsureStillAliveScope argument8 = callFrame->uncheckedArgument(8);
10144 auto height = convert<IDLLong>(*lexicalGlobalObject, argument8.value());
10145 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10146 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
10147 InspectorCanvasCallTracer::recordAction(impl, "copyTexSubImage3D"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, level), InspectorCanvasCallTracer::processArgument(impl, xoffset), InspectorCanvasCallTracer::processArgument(impl, yoffset), InspectorCanvasCallTracer::processArgument(impl, zoffset), InspectorCanvasCallTracer::processArgument(impl, x), InspectorCanvasCallTracer::processArgument(impl, y), InspectorCanvasCallTracer::processArgument(impl, width), InspectorCanvasCallTracer::processArgument(impl, height) });
10148 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.copyTexSubImage3D(WTFMove(target), WTFMove(level), WTFMove(xoffset), WTFMove(yoffset), WTFMove(zoffset), WTFMove(x), WTFMove(y), WTFMove(width), WTFMove(height)); })));
10149}
10150
10151JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_copyTexSubImage3D, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
10152{
10153 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_copyTexSubImage3DBody>(*lexicalGlobalObject, *callFrame, "copyTexSubImage3D");
10154}
10155
10156static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_compressedTexImage3D1Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
10157{
10158 auto& vm = JSC::getVM(lexicalGlobalObject);
10159 auto throwScope = DECLARE_THROW_SCOPE(vm);
10160 UNUSED_PARAM(throwScope);
10161 UNUSED_PARAM(callFrame);
10162 auto& impl = castedThis->wrapped();
10163 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
10164 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
10165 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10166 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
10167 auto level = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
10168 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10169 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
10170 auto internalformat = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
10171 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10172 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
10173 auto width = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
10174 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10175 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
10176 auto height = convert<IDLLong>(*lexicalGlobalObject, argument4.value());
10177 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10178 EnsureStillAliveScope argument5 = callFrame->uncheckedArgument(5);
10179 auto depth = convert<IDLLong>(*lexicalGlobalObject, argument5.value());
10180 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10181 EnsureStillAliveScope argument6 = callFrame->uncheckedArgument(6);
10182 auto border = convert<IDLLong>(*lexicalGlobalObject, argument6.value());
10183 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10184 EnsureStillAliveScope argument7 = callFrame->uncheckedArgument(7);
10185 auto imageSize = convert<IDLLong>(*lexicalGlobalObject, argument7.value());
10186 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10187 EnsureStillAliveScope argument8 = callFrame->uncheckedArgument(8);
10188 auto offset = convert<IDLLongLong>(*lexicalGlobalObject, argument8.value());
10189 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10190 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
10191 InspectorCanvasCallTracer::recordAction(impl, "compressedTexImage3D"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, level), InspectorCanvasCallTracer::processArgument(impl, internalformat), InspectorCanvasCallTracer::processArgument(impl, width), InspectorCanvasCallTracer::processArgument(impl, height), InspectorCanvasCallTracer::processArgument(impl, depth), InspectorCanvasCallTracer::processArgument(impl, border), InspectorCanvasCallTracer::processArgument(impl, imageSize), InspectorCanvasCallTracer::processArgument(impl, offset) });
10192 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.compressedTexImage3D(WTFMove(target), WTFMove(level), WTFMove(internalformat), WTFMove(width), WTFMove(height), WTFMove(depth), WTFMove(border), WTFMove(imageSize), WTFMove(offset)); })));
10193}
10194
10195static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_compressedTexImage3D2Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
10196{
10197 auto& vm = JSC::getVM(lexicalGlobalObject);
10198 auto throwScope = DECLARE_THROW_SCOPE(vm);
10199 UNUSED_PARAM(throwScope);
10200 UNUSED_PARAM(callFrame);
10201 auto& impl = castedThis->wrapped();
10202 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
10203 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
10204 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10205 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
10206 auto level = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
10207 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10208 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
10209 auto internalformat = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
10210 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10211 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
10212 auto width = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
10213 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10214 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
10215 auto height = convert<IDLLong>(*lexicalGlobalObject, argument4.value());
10216 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10217 EnsureStillAliveScope argument5 = callFrame->uncheckedArgument(5);
10218 auto depth = convert<IDLLong>(*lexicalGlobalObject, argument5.value());
10219 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10220 EnsureStillAliveScope argument6 = callFrame->uncheckedArgument(6);
10221 auto border = convert<IDLLong>(*lexicalGlobalObject, argument6.value());
10222 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10223 EnsureStillAliveScope argument7 = callFrame->uncheckedArgument(7);
10224 auto srcData = convert<IDLAllowSharedAdaptor<IDLArrayBufferView>>(*lexicalGlobalObject, argument7.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 7, "srcData", "WebGL2RenderingContext", "compressedTexImage3D", "ArrayBufferView"); });
10225 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10226 EnsureStillAliveScope argument8 = callFrame->argument(8);
10227 auto srcOffset = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument8.value());
10228 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10229 EnsureStillAliveScope argument9 = callFrame->argument(9);
10230 auto srcLengthOverride = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument9.value());
10231 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10232 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
10233 InspectorCanvasCallTracer::recordAction(impl, "compressedTexImage3D"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, level), InspectorCanvasCallTracer::processArgument(impl, internalformat), InspectorCanvasCallTracer::processArgument(impl, width), InspectorCanvasCallTracer::processArgument(impl, height), InspectorCanvasCallTracer::processArgument(impl, depth), InspectorCanvasCallTracer::processArgument(impl, border), InspectorCanvasCallTracer::processArgument(impl, srcData), InspectorCanvasCallTracer::processArgument(impl, srcOffset), InspectorCanvasCallTracer::processArgument(impl, srcLengthOverride) });
10234 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.compressedTexImage3D(WTFMove(target), WTFMove(level), WTFMove(internalformat), WTFMove(width), WTFMove(height), WTFMove(depth), WTFMove(border), srcData.releaseNonNull(), WTFMove(srcOffset), WTFMove(srcLengthOverride)); })));
10235}
10236
10237static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_compressedTexImage3DOverloadDispatcher(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
10238{
10239 auto& vm = JSC::getVM(lexicalGlobalObject);
10240 auto throwScope = DECLARE_THROW_SCOPE(vm);
10241 UNUSED_PARAM(throwScope);
10242 UNUSED_PARAM(callFrame);
10243 size_t argsCount = std::min<size_t>(10, callFrame->argumentCount());
10244 if (argsCount == 10) {
10245 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_compressedTexImage3D2Body(lexicalGlobalObject, callFrame, castedThis)));
10246 }
10247 if (argsCount == 8) {
10248 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_compressedTexImage3D2Body(lexicalGlobalObject, callFrame, castedThis)));
10249 }
10250 if (argsCount == 9) {
10251 JSValue distinguishingArg = callFrame->uncheckedArgument(7);
10252 if (distinguishingArg.isObject() && asObject(distinguishingArg)->inherits<JSArrayBufferView>(vm))
10253 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_compressedTexImage3D2Body(lexicalGlobalObject, callFrame, castedThis)));
10254 if (distinguishingArg.isNumber())
10255 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_compressedTexImage3D1Body(lexicalGlobalObject, callFrame, castedThis)));
10256 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_compressedTexImage3D1Body(lexicalGlobalObject, callFrame, castedThis)));
10257 }
10258 return argsCount < 8 ? throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject)) : throwVMTypeError(lexicalGlobalObject, throwScope);
10259}
10260
10261JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_compressedTexImage3D, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
10262{
10263 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_compressedTexImage3DOverloadDispatcher>(*lexicalGlobalObject, *callFrame, "compressedTexImage3D");
10264}
10265
10266static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_compressedTexSubImage3D1Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
10267{
10268 auto& vm = JSC::getVM(lexicalGlobalObject);
10269 auto throwScope = DECLARE_THROW_SCOPE(vm);
10270 UNUSED_PARAM(throwScope);
10271 UNUSED_PARAM(callFrame);
10272 auto& impl = castedThis->wrapped();
10273 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
10274 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
10275 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10276 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
10277 auto level = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
10278 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10279 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
10280 auto xoffset = convert<IDLLong>(*lexicalGlobalObject, argument2.value());
10281 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10282 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
10283 auto yoffset = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
10284 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10285 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
10286 auto zoffset = convert<IDLLong>(*lexicalGlobalObject, argument4.value());
10287 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10288 EnsureStillAliveScope argument5 = callFrame->uncheckedArgument(5);
10289 auto width = convert<IDLLong>(*lexicalGlobalObject, argument5.value());
10290 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10291 EnsureStillAliveScope argument6 = callFrame->uncheckedArgument(6);
10292 auto height = convert<IDLLong>(*lexicalGlobalObject, argument6.value());
10293 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10294 EnsureStillAliveScope argument7 = callFrame->uncheckedArgument(7);
10295 auto depth = convert<IDLLong>(*lexicalGlobalObject, argument7.value());
10296 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10297 EnsureStillAliveScope argument8 = callFrame->uncheckedArgument(8);
10298 auto format = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument8.value());
10299 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10300 EnsureStillAliveScope argument9 = callFrame->uncheckedArgument(9);
10301 auto imageSize = convert<IDLLong>(*lexicalGlobalObject, argument9.value());
10302 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10303 EnsureStillAliveScope argument10 = callFrame->uncheckedArgument(10);
10304 auto offset = convert<IDLLongLong>(*lexicalGlobalObject, argument10.value());
10305 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10306 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
10307 InspectorCanvasCallTracer::recordAction(impl, "compressedTexSubImage3D"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, level), InspectorCanvasCallTracer::processArgument(impl, xoffset), InspectorCanvasCallTracer::processArgument(impl, yoffset), InspectorCanvasCallTracer::processArgument(impl, zoffset), InspectorCanvasCallTracer::processArgument(impl, width), InspectorCanvasCallTracer::processArgument(impl, height), InspectorCanvasCallTracer::processArgument(impl, depth), InspectorCanvasCallTracer::processArgument(impl, format), InspectorCanvasCallTracer::processArgument(impl, imageSize), InspectorCanvasCallTracer::processArgument(impl, offset) });
10308 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.compressedTexSubImage3D(WTFMove(target), WTFMove(level), WTFMove(xoffset), WTFMove(yoffset), WTFMove(zoffset), WTFMove(width), WTFMove(height), WTFMove(depth), WTFMove(format), WTFMove(imageSize), WTFMove(offset)); })));
10309}
10310
10311static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_compressedTexSubImage3D2Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
10312{
10313 auto& vm = JSC::getVM(lexicalGlobalObject);
10314 auto throwScope = DECLARE_THROW_SCOPE(vm);
10315 UNUSED_PARAM(throwScope);
10316 UNUSED_PARAM(callFrame);
10317 auto& impl = castedThis->wrapped();
10318 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
10319 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
10320 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10321 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
10322 auto level = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
10323 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10324 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
10325 auto xoffset = convert<IDLLong>(*lexicalGlobalObject, argument2.value());
10326 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10327 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
10328 auto yoffset = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
10329 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10330 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
10331 auto zoffset = convert<IDLLong>(*lexicalGlobalObject, argument4.value());
10332 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10333 EnsureStillAliveScope argument5 = callFrame->uncheckedArgument(5);
10334 auto width = convert<IDLLong>(*lexicalGlobalObject, argument5.value());
10335 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10336 EnsureStillAliveScope argument6 = callFrame->uncheckedArgument(6);
10337 auto height = convert<IDLLong>(*lexicalGlobalObject, argument6.value());
10338 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10339 EnsureStillAliveScope argument7 = callFrame->uncheckedArgument(7);
10340 auto depth = convert<IDLLong>(*lexicalGlobalObject, argument7.value());
10341 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10342 EnsureStillAliveScope argument8 = callFrame->uncheckedArgument(8);
10343 auto format = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument8.value());
10344 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10345 EnsureStillAliveScope argument9 = callFrame->uncheckedArgument(9);
10346 auto srcData = convert<IDLAllowSharedAdaptor<IDLArrayBufferView>>(*lexicalGlobalObject, argument9.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 9, "srcData", "WebGL2RenderingContext", "compressedTexSubImage3D", "ArrayBufferView"); });
10347 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10348 EnsureStillAliveScope argument10 = callFrame->argument(10);
10349 auto srcOffset = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument10.value());
10350 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10351 EnsureStillAliveScope argument11 = callFrame->argument(11);
10352 auto srcLengthOverride = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument11.value());
10353 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10354 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
10355 InspectorCanvasCallTracer::recordAction(impl, "compressedTexSubImage3D"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, level), InspectorCanvasCallTracer::processArgument(impl, xoffset), InspectorCanvasCallTracer::processArgument(impl, yoffset), InspectorCanvasCallTracer::processArgument(impl, zoffset), InspectorCanvasCallTracer::processArgument(impl, width), InspectorCanvasCallTracer::processArgument(impl, height), InspectorCanvasCallTracer::processArgument(impl, depth), InspectorCanvasCallTracer::processArgument(impl, format), InspectorCanvasCallTracer::processArgument(impl, srcData), InspectorCanvasCallTracer::processArgument(impl, srcOffset), InspectorCanvasCallTracer::processArgument(impl, srcLengthOverride) });
10356 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.compressedTexSubImage3D(WTFMove(target), WTFMove(level), WTFMove(xoffset), WTFMove(yoffset), WTFMove(zoffset), WTFMove(width), WTFMove(height), WTFMove(depth), WTFMove(format), srcData.releaseNonNull(), WTFMove(srcOffset), WTFMove(srcLengthOverride)); })));
10357}
10358
10359static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_compressedTexSubImage3DOverloadDispatcher(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
10360{
10361 auto& vm = JSC::getVM(lexicalGlobalObject);
10362 auto throwScope = DECLARE_THROW_SCOPE(vm);
10363 UNUSED_PARAM(throwScope);
10364 UNUSED_PARAM(callFrame);
10365 size_t argsCount = std::min<size_t>(12, callFrame->argumentCount());
10366 if (argsCount == 10) {
10367 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_compressedTexSubImage3D2Body(lexicalGlobalObject, callFrame, castedThis)));
10368 }
10369 if (argsCount == 11) {
10370 JSValue distinguishingArg = callFrame->uncheckedArgument(9);
10371 if (distinguishingArg.isObject() && asObject(distinguishingArg)->inherits<JSArrayBufferView>(vm))
10372 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_compressedTexSubImage3D2Body(lexicalGlobalObject, callFrame, castedThis)));
10373 if (distinguishingArg.isNumber())
10374 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_compressedTexSubImage3D1Body(lexicalGlobalObject, callFrame, castedThis)));
10375 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_compressedTexSubImage3D1Body(lexicalGlobalObject, callFrame, castedThis)));
10376 }
10377 if (argsCount == 12) {
10378 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_compressedTexSubImage3D2Body(lexicalGlobalObject, callFrame, castedThis)));
10379 }
10380 return argsCount < 10 ? throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject)) : throwVMTypeError(lexicalGlobalObject, throwScope);
10381}
10382
10383JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_compressedTexSubImage3D, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
10384{
10385 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_compressedTexSubImage3DOverloadDispatcher>(*lexicalGlobalObject, *callFrame, "compressedTexSubImage3D");
10386}
10387
10388static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_getFragDataLocationBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
10389{
10390 auto& vm = JSC::getVM(lexicalGlobalObject);
10391 auto throwScope = DECLARE_THROW_SCOPE(vm);
10392 UNUSED_PARAM(throwScope);
10393 UNUSED_PARAM(callFrame);
10394 auto& impl = castedThis->wrapped();
10395 if (UNLIKELY(callFrame->argumentCount() < 2))
10396 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
10397 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
10398 auto program = convert<IDLInterface<WebGLProgram>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "program", "WebGL2RenderingContext", "getFragDataLocation", "WebGLProgram"); });
10399 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10400 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
10401 auto name = convert<IDLDOMString>(*lexicalGlobalObject, argument1.value());
10402 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10403 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
10404 InspectorCanvasCallTracer::recordAction(impl, "getFragDataLocation"_s, { InspectorCanvasCallTracer::processArgument(impl, program), InspectorCanvasCallTracer::processArgument(impl, name) });
10405 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLLong>(*lexicalGlobalObject, throwScope, impl.getFragDataLocation(*program, WTFMove(name)))));
10406}
10407
10408JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getFragDataLocation, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
10409{
10410 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_getFragDataLocationBody>(*lexicalGlobalObject, *callFrame, "getFragDataLocation");
10411}
10412
10413static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniform1uiBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
10414{
10415 auto& vm = JSC::getVM(lexicalGlobalObject);
10416 auto throwScope = DECLARE_THROW_SCOPE(vm);
10417 UNUSED_PARAM(throwScope);
10418 UNUSED_PARAM(callFrame);
10419 auto& impl = castedThis->wrapped();
10420 if (UNLIKELY(callFrame->argumentCount() < 2))
10421 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
10422 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
10423 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniform1ui", "WebGLUniformLocation"); });
10424 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10425 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
10426 auto v0 = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
10427 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10428 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
10429 InspectorCanvasCallTracer::recordAction(impl, "uniform1ui"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, v0) });
10430 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniform1ui(WTFMove(location), WTFMove(v0)); })));
10431}
10432
10433JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform1ui, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
10434{
10435 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_uniform1uiBody>(*lexicalGlobalObject, *callFrame, "uniform1ui");
10436}
10437
10438static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniform2uiBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
10439{
10440 auto& vm = JSC::getVM(lexicalGlobalObject);
10441 auto throwScope = DECLARE_THROW_SCOPE(vm);
10442 UNUSED_PARAM(throwScope);
10443 UNUSED_PARAM(callFrame);
10444 auto& impl = castedThis->wrapped();
10445 if (UNLIKELY(callFrame->argumentCount() < 3))
10446 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
10447 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
10448 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniform2ui", "WebGLUniformLocation"); });
10449 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10450 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
10451 auto v0 = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
10452 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10453 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
10454 auto v1 = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
10455 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10456 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
10457 InspectorCanvasCallTracer::recordAction(impl, "uniform2ui"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, v0), InspectorCanvasCallTracer::processArgument(impl, v1) });
10458 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniform2ui(WTFMove(location), WTFMove(v0), WTFMove(v1)); })));
10459}
10460
10461JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform2ui, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
10462{
10463 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_uniform2uiBody>(*lexicalGlobalObject, *callFrame, "uniform2ui");
10464}
10465
10466static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniform3uiBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
10467{
10468 auto& vm = JSC::getVM(lexicalGlobalObject);
10469 auto throwScope = DECLARE_THROW_SCOPE(vm);
10470 UNUSED_PARAM(throwScope);
10471 UNUSED_PARAM(callFrame);
10472 auto& impl = castedThis->wrapped();
10473 if (UNLIKELY(callFrame->argumentCount() < 4))
10474 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
10475 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
10476 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniform3ui", "WebGLUniformLocation"); });
10477 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10478 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
10479 auto v0 = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
10480 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10481 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
10482 auto v1 = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
10483 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10484 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
10485 auto v2 = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument3.value());
10486 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10487 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
10488 InspectorCanvasCallTracer::recordAction(impl, "uniform3ui"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, v0), InspectorCanvasCallTracer::processArgument(impl, v1), InspectorCanvasCallTracer::processArgument(impl, v2) });
10489 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniform3ui(WTFMove(location), WTFMove(v0), WTFMove(v1), WTFMove(v2)); })));
10490}
10491
10492JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform3ui, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
10493{
10494 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_uniform3uiBody>(*lexicalGlobalObject, *callFrame, "uniform3ui");
10495}
10496
10497static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniform4uiBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
10498{
10499 auto& vm = JSC::getVM(lexicalGlobalObject);
10500 auto throwScope = DECLARE_THROW_SCOPE(vm);
10501 UNUSED_PARAM(throwScope);
10502 UNUSED_PARAM(callFrame);
10503 auto& impl = castedThis->wrapped();
10504 if (UNLIKELY(callFrame->argumentCount() < 5))
10505 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
10506 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
10507 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniform4ui", "WebGLUniformLocation"); });
10508 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10509 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
10510 auto v0 = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
10511 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10512 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
10513 auto v1 = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
10514 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10515 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
10516 auto v2 = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument3.value());
10517 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10518 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
10519 auto v3 = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument4.value());
10520 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10521 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
10522 InspectorCanvasCallTracer::recordAction(impl, "uniform4ui"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, v0), InspectorCanvasCallTracer::processArgument(impl, v1), InspectorCanvasCallTracer::processArgument(impl, v2), InspectorCanvasCallTracer::processArgument(impl, v3) });
10523 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniform4ui(WTFMove(location), WTFMove(v0), WTFMove(v1), WTFMove(v2), WTFMove(v3)); })));
10524}
10525
10526JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform4ui, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
10527{
10528 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_uniform4uiBody>(*lexicalGlobalObject, *callFrame, "uniform4ui");
10529}
10530
10531static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniform1uivBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
10532{
10533 auto& vm = JSC::getVM(lexicalGlobalObject);
10534 auto throwScope = DECLARE_THROW_SCOPE(vm);
10535 UNUSED_PARAM(throwScope);
10536 UNUSED_PARAM(callFrame);
10537 auto& impl = castedThis->wrapped();
10538 if (UNLIKELY(callFrame->argumentCount() < 2))
10539 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
10540 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
10541 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniform1uiv", "WebGLUniformLocation"); });
10542 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10543 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
10544 auto data = convert<IDLUnion<IDLAllowSharedAdaptor<IDLUint32Array>, IDLSequence<IDLUnsignedLong>>>(*lexicalGlobalObject, argument1.value());
10545 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10546 EnsureStillAliveScope argument2 = callFrame->argument(2);
10547 auto srcOffset = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
10548 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10549 EnsureStillAliveScope argument3 = callFrame->argument(3);
10550 auto srcLength = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument3.value());
10551 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10552 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
10553 InspectorCanvasCallTracer::recordAction(impl, "uniform1uiv"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, data), InspectorCanvasCallTracer::processArgument(impl, srcOffset), InspectorCanvasCallTracer::processArgument(impl, srcLength) });
10554 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniform1uiv(WTFMove(location), WTFMove(data), WTFMove(srcOffset), WTFMove(srcLength)); })));
10555}
10556
10557JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform1uiv, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
10558{
10559 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_uniform1uivBody>(*lexicalGlobalObject, *callFrame, "uniform1uiv");
10560}
10561
10562static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniform2uivBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
10563{
10564 auto& vm = JSC::getVM(lexicalGlobalObject);
10565 auto throwScope = DECLARE_THROW_SCOPE(vm);
10566 UNUSED_PARAM(throwScope);
10567 UNUSED_PARAM(callFrame);
10568 auto& impl = castedThis->wrapped();
10569 if (UNLIKELY(callFrame->argumentCount() < 2))
10570 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
10571 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
10572 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniform2uiv", "WebGLUniformLocation"); });
10573 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10574 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
10575 auto data = convert<IDLUnion<IDLAllowSharedAdaptor<IDLUint32Array>, IDLSequence<IDLUnsignedLong>>>(*lexicalGlobalObject, argument1.value());
10576 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10577 EnsureStillAliveScope argument2 = callFrame->argument(2);
10578 auto srcOffset = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
10579 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10580 EnsureStillAliveScope argument3 = callFrame->argument(3);
10581 auto srcLength = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument3.value());
10582 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10583 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
10584 InspectorCanvasCallTracer::recordAction(impl, "uniform2uiv"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, data), InspectorCanvasCallTracer::processArgument(impl, srcOffset), InspectorCanvasCallTracer::processArgument(impl, srcLength) });
10585 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniform2uiv(WTFMove(location), WTFMove(data), WTFMove(srcOffset), WTFMove(srcLength)); })));
10586}
10587
10588JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform2uiv, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
10589{
10590 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_uniform2uivBody>(*lexicalGlobalObject, *callFrame, "uniform2uiv");
10591}
10592
10593static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniform3uivBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
10594{
10595 auto& vm = JSC::getVM(lexicalGlobalObject);
10596 auto throwScope = DECLARE_THROW_SCOPE(vm);
10597 UNUSED_PARAM(throwScope);
10598 UNUSED_PARAM(callFrame);
10599 auto& impl = castedThis->wrapped();
10600 if (UNLIKELY(callFrame->argumentCount() < 2))
10601 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
10602 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
10603 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniform3uiv", "WebGLUniformLocation"); });
10604 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10605 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
10606 auto data = convert<IDLUnion<IDLAllowSharedAdaptor<IDLUint32Array>, IDLSequence<IDLUnsignedLong>>>(*lexicalGlobalObject, argument1.value());
10607 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10608 EnsureStillAliveScope argument2 = callFrame->argument(2);
10609 auto srcOffset = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
10610 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10611 EnsureStillAliveScope argument3 = callFrame->argument(3);
10612 auto srcLength = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument3.value());
10613 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10614 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
10615 InspectorCanvasCallTracer::recordAction(impl, "uniform3uiv"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, data), InspectorCanvasCallTracer::processArgument(impl, srcOffset), InspectorCanvasCallTracer::processArgument(impl, srcLength) });
10616 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniform3uiv(WTFMove(location), WTFMove(data), WTFMove(srcOffset), WTFMove(srcLength)); })));
10617}
10618
10619JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform3uiv, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
10620{
10621 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_uniform3uivBody>(*lexicalGlobalObject, *callFrame, "uniform3uiv");
10622}
10623
10624static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniform4uivBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
10625{
10626 auto& vm = JSC::getVM(lexicalGlobalObject);
10627 auto throwScope = DECLARE_THROW_SCOPE(vm);
10628 UNUSED_PARAM(throwScope);
10629 UNUSED_PARAM(callFrame);
10630 auto& impl = castedThis->wrapped();
10631 if (UNLIKELY(callFrame->argumentCount() < 2))
10632 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
10633 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
10634 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniform4uiv", "WebGLUniformLocation"); });
10635 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10636 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
10637 auto data = convert<IDLUnion<IDLAllowSharedAdaptor<IDLUint32Array>, IDLSequence<IDLUnsignedLong>>>(*lexicalGlobalObject, argument1.value());
10638 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10639 EnsureStillAliveScope argument2 = callFrame->argument(2);
10640 auto srcOffset = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
10641 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10642 EnsureStillAliveScope argument3 = callFrame->argument(3);
10643 auto srcLength = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument3.value());
10644 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10645 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
10646 InspectorCanvasCallTracer::recordAction(impl, "uniform4uiv"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, data), InspectorCanvasCallTracer::processArgument(impl, srcOffset), InspectorCanvasCallTracer::processArgument(impl, srcLength) });
10647 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniform4uiv(WTFMove(location), WTFMove(data), WTFMove(srcOffset), WTFMove(srcLength)); })));
10648}
10649
10650JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform4uiv, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
10651{
10652 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_uniform4uivBody>(*lexicalGlobalObject, *callFrame, "uniform4uiv");
10653}
10654
10655static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniformMatrix2x3fvBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
10656{
10657 auto& vm = JSC::getVM(lexicalGlobalObject);
10658 auto throwScope = DECLARE_THROW_SCOPE(vm);
10659 UNUSED_PARAM(throwScope);
10660 UNUSED_PARAM(callFrame);
10661 auto& impl = castedThis->wrapped();
10662 if (UNLIKELY(callFrame->argumentCount() < 3))
10663 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
10664 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
10665 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniformMatrix2x3fv", "WebGLUniformLocation"); });
10666 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10667 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
10668 auto transpose = convert<IDLBoolean>(*lexicalGlobalObject, argument1.value());
10669 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10670 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
10671 auto data = convert<IDLUnion<IDLAllowSharedAdaptor<IDLFloat32Array>, IDLSequence<IDLUnrestrictedFloat>>>(*lexicalGlobalObject, argument2.value());
10672 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10673 EnsureStillAliveScope argument3 = callFrame->argument(3);
10674 auto srcOffset = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument3.value());
10675 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10676 EnsureStillAliveScope argument4 = callFrame->argument(4);
10677 auto srcLength = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument4.value());
10678 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10679 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
10680 InspectorCanvasCallTracer::recordAction(impl, "uniformMatrix2x3fv"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, transpose), InspectorCanvasCallTracer::processArgument(impl, data), InspectorCanvasCallTracer::processArgument(impl, srcOffset), InspectorCanvasCallTracer::processArgument(impl, srcLength) });
10681 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniformMatrix2x3fv(WTFMove(location), WTFMove(transpose), WTFMove(data), WTFMove(srcOffset), WTFMove(srcLength)); })));
10682}
10683
10684JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniformMatrix2x3fv, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
10685{
10686 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_uniformMatrix2x3fvBody>(*lexicalGlobalObject, *callFrame, "uniformMatrix2x3fv");
10687}
10688
10689static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniformMatrix3x2fvBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
10690{
10691 auto& vm = JSC::getVM(lexicalGlobalObject);
10692 auto throwScope = DECLARE_THROW_SCOPE(vm);
10693 UNUSED_PARAM(throwScope);
10694 UNUSED_PARAM(callFrame);
10695 auto& impl = castedThis->wrapped();
10696 if (UNLIKELY(callFrame->argumentCount() < 3))
10697 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
10698 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
10699 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniformMatrix3x2fv", "WebGLUniformLocation"); });
10700 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10701 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
10702 auto transpose = convert<IDLBoolean>(*lexicalGlobalObject, argument1.value());
10703 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10704 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
10705 auto data = convert<IDLUnion<IDLAllowSharedAdaptor<IDLFloat32Array>, IDLSequence<IDLUnrestrictedFloat>>>(*lexicalGlobalObject, argument2.value());
10706 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10707 EnsureStillAliveScope argument3 = callFrame->argument(3);
10708 auto srcOffset = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument3.value());
10709 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10710 EnsureStillAliveScope argument4 = callFrame->argument(4);
10711 auto srcLength = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument4.value());
10712 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10713 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
10714 InspectorCanvasCallTracer::recordAction(impl, "uniformMatrix3x2fv"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, transpose), InspectorCanvasCallTracer::processArgument(impl, data), InspectorCanvasCallTracer::processArgument(impl, srcOffset), InspectorCanvasCallTracer::processArgument(impl, srcLength) });
10715 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniformMatrix3x2fv(WTFMove(location), WTFMove(transpose), WTFMove(data), WTFMove(srcOffset), WTFMove(srcLength)); })));
10716}
10717
10718JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniformMatrix3x2fv, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
10719{
10720 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_uniformMatrix3x2fvBody>(*lexicalGlobalObject, *callFrame, "uniformMatrix3x2fv");
10721}
10722
10723static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniformMatrix2x4fvBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
10724{
10725 auto& vm = JSC::getVM(lexicalGlobalObject);
10726 auto throwScope = DECLARE_THROW_SCOPE(vm);
10727 UNUSED_PARAM(throwScope);
10728 UNUSED_PARAM(callFrame);
10729 auto& impl = castedThis->wrapped();
10730 if (UNLIKELY(callFrame->argumentCount() < 3))
10731 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
10732 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
10733 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniformMatrix2x4fv", "WebGLUniformLocation"); });
10734 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10735 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
10736 auto transpose = convert<IDLBoolean>(*lexicalGlobalObject, argument1.value());
10737 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10738 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
10739 auto data = convert<IDLUnion<IDLAllowSharedAdaptor<IDLFloat32Array>, IDLSequence<IDLUnrestrictedFloat>>>(*lexicalGlobalObject, argument2.value());
10740 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10741 EnsureStillAliveScope argument3 = callFrame->argument(3);
10742 auto srcOffset = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument3.value());
10743 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10744 EnsureStillAliveScope argument4 = callFrame->argument(4);
10745 auto srcLength = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument4.value());
10746 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10747 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
10748 InspectorCanvasCallTracer::recordAction(impl, "uniformMatrix2x4fv"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, transpose), InspectorCanvasCallTracer::processArgument(impl, data), InspectorCanvasCallTracer::processArgument(impl, srcOffset), InspectorCanvasCallTracer::processArgument(impl, srcLength) });
10749 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniformMatrix2x4fv(WTFMove(location), WTFMove(transpose), WTFMove(data), WTFMove(srcOffset), WTFMove(srcLength)); })));
10750}
10751
10752JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniformMatrix2x4fv, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
10753{
10754 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_uniformMatrix2x4fvBody>(*lexicalGlobalObject, *callFrame, "uniformMatrix2x4fv");
10755}
10756
10757static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniformMatrix4x2fvBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
10758{
10759 auto& vm = JSC::getVM(lexicalGlobalObject);
10760 auto throwScope = DECLARE_THROW_SCOPE(vm);
10761 UNUSED_PARAM(throwScope);
10762 UNUSED_PARAM(callFrame);
10763 auto& impl = castedThis->wrapped();
10764 if (UNLIKELY(callFrame->argumentCount() < 3))
10765 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
10766 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
10767 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniformMatrix4x2fv", "WebGLUniformLocation"); });
10768 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10769 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
10770 auto transpose = convert<IDLBoolean>(*lexicalGlobalObject, argument1.value());
10771 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10772 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
10773 auto data = convert<IDLUnion<IDLAllowSharedAdaptor<IDLFloat32Array>, IDLSequence<IDLUnrestrictedFloat>>>(*lexicalGlobalObject, argument2.value());
10774 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10775 EnsureStillAliveScope argument3 = callFrame->argument(3);
10776 auto srcOffset = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument3.value());
10777 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10778 EnsureStillAliveScope argument4 = callFrame->argument(4);
10779 auto srcLength = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument4.value());
10780 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10781 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
10782 InspectorCanvasCallTracer::recordAction(impl, "uniformMatrix4x2fv"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, transpose), InspectorCanvasCallTracer::processArgument(impl, data), InspectorCanvasCallTracer::processArgument(impl, srcOffset), InspectorCanvasCallTracer::processArgument(impl, srcLength) });
10783 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniformMatrix4x2fv(WTFMove(location), WTFMove(transpose), WTFMove(data), WTFMove(srcOffset), WTFMove(srcLength)); })));
10784}
10785
10786JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniformMatrix4x2fv, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
10787{
10788 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_uniformMatrix4x2fvBody>(*lexicalGlobalObject, *callFrame, "uniformMatrix4x2fv");
10789}
10790
10791static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniformMatrix3x4fvBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
10792{
10793 auto& vm = JSC::getVM(lexicalGlobalObject);
10794 auto throwScope = DECLARE_THROW_SCOPE(vm);
10795 UNUSED_PARAM(throwScope);
10796 UNUSED_PARAM(callFrame);
10797 auto& impl = castedThis->wrapped();
10798 if (UNLIKELY(callFrame->argumentCount() < 3))
10799 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
10800 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
10801 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniformMatrix3x4fv", "WebGLUniformLocation"); });
10802 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10803 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
10804 auto transpose = convert<IDLBoolean>(*lexicalGlobalObject, argument1.value());
10805 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10806 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
10807 auto data = convert<IDLUnion<IDLAllowSharedAdaptor<IDLFloat32Array>, IDLSequence<IDLUnrestrictedFloat>>>(*lexicalGlobalObject, argument2.value());
10808 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10809 EnsureStillAliveScope argument3 = callFrame->argument(3);
10810 auto srcOffset = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument3.value());
10811 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10812 EnsureStillAliveScope argument4 = callFrame->argument(4);
10813 auto srcLength = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument4.value());
10814 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10815 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
10816 InspectorCanvasCallTracer::recordAction(impl, "uniformMatrix3x4fv"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, transpose), InspectorCanvasCallTracer::processArgument(impl, data), InspectorCanvasCallTracer::processArgument(impl, srcOffset), InspectorCanvasCallTracer::processArgument(impl, srcLength) });
10817 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniformMatrix3x4fv(WTFMove(location), WTFMove(transpose), WTFMove(data), WTFMove(srcOffset), WTFMove(srcLength)); })));
10818}
10819
10820JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniformMatrix3x4fv, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
10821{
10822 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_uniformMatrix3x4fvBody>(*lexicalGlobalObject, *callFrame, "uniformMatrix3x4fv");
10823}
10824
10825static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniformMatrix4x3fvBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
10826{
10827 auto& vm = JSC::getVM(lexicalGlobalObject);
10828 auto throwScope = DECLARE_THROW_SCOPE(vm);
10829 UNUSED_PARAM(throwScope);
10830 UNUSED_PARAM(callFrame);
10831 auto& impl = castedThis->wrapped();
10832 if (UNLIKELY(callFrame->argumentCount() < 3))
10833 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
10834 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
10835 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniformMatrix4x3fv", "WebGLUniformLocation"); });
10836 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10837 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
10838 auto transpose = convert<IDLBoolean>(*lexicalGlobalObject, argument1.value());
10839 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10840 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
10841 auto data = convert<IDLUnion<IDLAllowSharedAdaptor<IDLFloat32Array>, IDLSequence<IDLUnrestrictedFloat>>>(*lexicalGlobalObject, argument2.value());
10842 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10843 EnsureStillAliveScope argument3 = callFrame->argument(3);
10844 auto srcOffset = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument3.value());
10845 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10846 EnsureStillAliveScope argument4 = callFrame->argument(4);
10847 auto srcLength = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument4.value());
10848 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10849 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
10850 InspectorCanvasCallTracer::recordAction(impl, "uniformMatrix4x3fv"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, transpose), InspectorCanvasCallTracer::processArgument(impl, data), InspectorCanvasCallTracer::processArgument(impl, srcOffset), InspectorCanvasCallTracer::processArgument(impl, srcLength) });
10851 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniformMatrix4x3fv(WTFMove(location), WTFMove(transpose), WTFMove(data), WTFMove(srcOffset), WTFMove(srcLength)); })));
10852}
10853
10854JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniformMatrix4x3fv, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
10855{
10856 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_uniformMatrix4x3fvBody>(*lexicalGlobalObject, *callFrame, "uniformMatrix4x3fv");
10857}
10858
10859static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_vertexAttribI4iBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
10860{
10861 auto& vm = JSC::getVM(lexicalGlobalObject);
10862 auto throwScope = DECLARE_THROW_SCOPE(vm);
10863 UNUSED_PARAM(throwScope);
10864 UNUSED_PARAM(callFrame);
10865 auto& impl = castedThis->wrapped();
10866 if (UNLIKELY(callFrame->argumentCount() < 5))
10867 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
10868 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
10869 auto index = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
10870 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10871 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
10872 auto x = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
10873 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10874 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
10875 auto y = convert<IDLLong>(*lexicalGlobalObject, argument2.value());
10876 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10877 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
10878 auto z = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
10879 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10880 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
10881 auto w = convert<IDLLong>(*lexicalGlobalObject, argument4.value());
10882 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10883 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
10884 InspectorCanvasCallTracer::recordAction(impl, "vertexAttribI4i"_s, { InspectorCanvasCallTracer::processArgument(impl, index), InspectorCanvasCallTracer::processArgument(impl, x), InspectorCanvasCallTracer::processArgument(impl, y), InspectorCanvasCallTracer::processArgument(impl, z), InspectorCanvasCallTracer::processArgument(impl, w) });
10885 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.vertexAttribI4i(WTFMove(index), WTFMove(x), WTFMove(y), WTFMove(z), WTFMove(w)); })));
10886}
10887
10888JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_vertexAttribI4i, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
10889{
10890 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_vertexAttribI4iBody>(*lexicalGlobalObject, *callFrame, "vertexAttribI4i");
10891}
10892
10893static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_vertexAttribI4ivBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
10894{
10895 auto& vm = JSC::getVM(lexicalGlobalObject);
10896 auto throwScope = DECLARE_THROW_SCOPE(vm);
10897 UNUSED_PARAM(throwScope);
10898 UNUSED_PARAM(callFrame);
10899 auto& impl = castedThis->wrapped();
10900 if (UNLIKELY(callFrame->argumentCount() < 2))
10901 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
10902 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
10903 auto index = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
10904 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10905 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
10906 auto values = convert<IDLUnion<IDLAllowSharedAdaptor<IDLInt32Array>, IDLSequence<IDLLong>>>(*lexicalGlobalObject, argument1.value());
10907 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10908 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
10909 InspectorCanvasCallTracer::recordAction(impl, "vertexAttribI4iv"_s, { InspectorCanvasCallTracer::processArgument(impl, index), InspectorCanvasCallTracer::processArgument(impl, values) });
10910 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.vertexAttribI4iv(WTFMove(index), WTFMove(values)); })));
10911}
10912
10913JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_vertexAttribI4iv, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
10914{
10915 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_vertexAttribI4ivBody>(*lexicalGlobalObject, *callFrame, "vertexAttribI4iv");
10916}
10917
10918static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_vertexAttribI4uiBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
10919{
10920 auto& vm = JSC::getVM(lexicalGlobalObject);
10921 auto throwScope = DECLARE_THROW_SCOPE(vm);
10922 UNUSED_PARAM(throwScope);
10923 UNUSED_PARAM(callFrame);
10924 auto& impl = castedThis->wrapped();
10925 if (UNLIKELY(callFrame->argumentCount() < 5))
10926 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
10927 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
10928 auto index = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
10929 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10930 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
10931 auto x = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
10932 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10933 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
10934 auto y = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
10935 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10936 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
10937 auto z = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument3.value());
10938 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10939 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
10940 auto w = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument4.value());
10941 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10942 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
10943 InspectorCanvasCallTracer::recordAction(impl, "vertexAttribI4ui"_s, { InspectorCanvasCallTracer::processArgument(impl, index), InspectorCanvasCallTracer::processArgument(impl, x), InspectorCanvasCallTracer::processArgument(impl, y), InspectorCanvasCallTracer::processArgument(impl, z), InspectorCanvasCallTracer::processArgument(impl, w) });
10944 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.vertexAttribI4ui(WTFMove(index), WTFMove(x), WTFMove(y), WTFMove(z), WTFMove(w)); })));
10945}
10946
10947JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_vertexAttribI4ui, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
10948{
10949 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_vertexAttribI4uiBody>(*lexicalGlobalObject, *callFrame, "vertexAttribI4ui");
10950}
10951
10952static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_vertexAttribI4uivBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
10953{
10954 auto& vm = JSC::getVM(lexicalGlobalObject);
10955 auto throwScope = DECLARE_THROW_SCOPE(vm);
10956 UNUSED_PARAM(throwScope);
10957 UNUSED_PARAM(callFrame);
10958 auto& impl = castedThis->wrapped();
10959 if (UNLIKELY(callFrame->argumentCount() < 2))
10960 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
10961 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
10962 auto index = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
10963 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10964 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
10965 auto values = convert<IDLUnion<IDLAllowSharedAdaptor<IDLUint32Array>, IDLSequence<IDLUnsignedLong>>>(*lexicalGlobalObject, argument1.value());
10966 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10967 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
10968 InspectorCanvasCallTracer::recordAction(impl, "vertexAttribI4uiv"_s, { InspectorCanvasCallTracer::processArgument(impl, index), InspectorCanvasCallTracer::processArgument(impl, values) });
10969 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.vertexAttribI4uiv(WTFMove(index), WTFMove(values)); })));
10970}
10971
10972JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_vertexAttribI4uiv, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
10973{
10974 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_vertexAttribI4uivBody>(*lexicalGlobalObject, *callFrame, "vertexAttribI4uiv");
10975}
10976
10977static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_vertexAttribIPointerBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
10978{
10979 auto& vm = JSC::getVM(lexicalGlobalObject);
10980 auto throwScope = DECLARE_THROW_SCOPE(vm);
10981 UNUSED_PARAM(throwScope);
10982 UNUSED_PARAM(callFrame);
10983 auto& impl = castedThis->wrapped();
10984 if (UNLIKELY(callFrame->argumentCount() < 5))
10985 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
10986 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
10987 auto index = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
10988 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10989 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
10990 auto size = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
10991 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10992 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
10993 auto type = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
10994 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10995 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
10996 auto stride = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
10997 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
10998 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
10999 auto offset = convert<IDLLongLong>(*lexicalGlobalObject, argument4.value());
11000 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11001 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
11002 InspectorCanvasCallTracer::recordAction(impl, "vertexAttribIPointer"_s, { InspectorCanvasCallTracer::processArgument(impl, index), InspectorCanvasCallTracer::processArgument(impl, size), InspectorCanvasCallTracer::processArgument(impl, type), InspectorCanvasCallTracer::processArgument(impl, stride), InspectorCanvasCallTracer::processArgument(impl, offset) });
11003 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.vertexAttribIPointer(WTFMove(index), WTFMove(size), WTFMove(type), WTFMove(stride), WTFMove(offset)); })));
11004}
11005
11006JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_vertexAttribIPointer, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
11007{
11008 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_vertexAttribIPointerBody>(*lexicalGlobalObject, *callFrame, "vertexAttribIPointer");
11009}
11010
11011static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_vertexAttribDivisorBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
11012{
11013 auto& vm = JSC::getVM(lexicalGlobalObject);
11014 auto throwScope = DECLARE_THROW_SCOPE(vm);
11015 UNUSED_PARAM(throwScope);
11016 UNUSED_PARAM(callFrame);
11017 auto& impl = castedThis->wrapped();
11018 if (UNLIKELY(callFrame->argumentCount() < 2))
11019 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
11020 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
11021 auto index = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
11022 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11023 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
11024 auto divisor = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
11025 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11026 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
11027 InspectorCanvasCallTracer::recordAction(impl, "vertexAttribDivisor"_s, { InspectorCanvasCallTracer::processArgument(impl, index), InspectorCanvasCallTracer::processArgument(impl, divisor) });
11028 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.vertexAttribDivisor(WTFMove(index), WTFMove(divisor)); })));
11029}
11030
11031JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_vertexAttribDivisor, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
11032{
11033 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_vertexAttribDivisorBody>(*lexicalGlobalObject, *callFrame, "vertexAttribDivisor");
11034}
11035
11036static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_drawArraysInstancedBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
11037{
11038 auto& vm = JSC::getVM(lexicalGlobalObject);
11039 auto throwScope = DECLARE_THROW_SCOPE(vm);
11040 UNUSED_PARAM(throwScope);
11041 UNUSED_PARAM(callFrame);
11042 auto& impl = castedThis->wrapped();
11043 if (UNLIKELY(callFrame->argumentCount() < 4))
11044 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
11045 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
11046 auto mode = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
11047 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11048 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
11049 auto first = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
11050 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11051 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
11052 auto count = convert<IDLLong>(*lexicalGlobalObject, argument2.value());
11053 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11054 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
11055 auto instanceCount = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
11056 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11057 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
11058 InspectorCanvasCallTracer::recordAction(impl, "drawArraysInstanced"_s, { InspectorCanvasCallTracer::processArgument(impl, mode), InspectorCanvasCallTracer::processArgument(impl, first), InspectorCanvasCallTracer::processArgument(impl, count), InspectorCanvasCallTracer::processArgument(impl, instanceCount) });
11059 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.drawArraysInstanced(WTFMove(mode), WTFMove(first), WTFMove(count), WTFMove(instanceCount)); })));
11060}
11061
11062JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_drawArraysInstanced, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
11063{
11064 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_drawArraysInstancedBody>(*lexicalGlobalObject, *callFrame, "drawArraysInstanced");
11065}
11066
11067static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_drawElementsInstancedBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
11068{
11069 auto& vm = JSC::getVM(lexicalGlobalObject);
11070 auto throwScope = DECLARE_THROW_SCOPE(vm);
11071 UNUSED_PARAM(throwScope);
11072 UNUSED_PARAM(callFrame);
11073 auto& impl = castedThis->wrapped();
11074 if (UNLIKELY(callFrame->argumentCount() < 5))
11075 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
11076 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
11077 auto mode = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
11078 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11079 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
11080 auto count = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
11081 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11082 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
11083 auto type = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
11084 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11085 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
11086 auto offset = convert<IDLLongLong>(*lexicalGlobalObject, argument3.value());
11087 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11088 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
11089 auto instanceCount = convert<IDLLong>(*lexicalGlobalObject, argument4.value());
11090 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11091 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
11092 InspectorCanvasCallTracer::recordAction(impl, "drawElementsInstanced"_s, { InspectorCanvasCallTracer::processArgument(impl, mode), InspectorCanvasCallTracer::processArgument(impl, count), InspectorCanvasCallTracer::processArgument(impl, type), InspectorCanvasCallTracer::processArgument(impl, offset), InspectorCanvasCallTracer::processArgument(impl, instanceCount) });
11093 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.drawElementsInstanced(WTFMove(mode), WTFMove(count), WTFMove(type), WTFMove(offset), WTFMove(instanceCount)); })));
11094}
11095
11096JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_drawElementsInstanced, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
11097{
11098 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_drawElementsInstancedBody>(*lexicalGlobalObject, *callFrame, "drawElementsInstanced");
11099}
11100
11101static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_drawRangeElementsBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
11102{
11103 auto& vm = JSC::getVM(lexicalGlobalObject);
11104 auto throwScope = DECLARE_THROW_SCOPE(vm);
11105 UNUSED_PARAM(throwScope);
11106 UNUSED_PARAM(callFrame);
11107 auto& impl = castedThis->wrapped();
11108 if (UNLIKELY(callFrame->argumentCount() < 6))
11109 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
11110 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
11111 auto mode = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
11112 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11113 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
11114 auto start = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
11115 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11116 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
11117 auto end = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
11118 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11119 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
11120 auto count = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
11121 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11122 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
11123 auto type = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument4.value());
11124 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11125 EnsureStillAliveScope argument5 = callFrame->uncheckedArgument(5);
11126 auto offset = convert<IDLLongLong>(*lexicalGlobalObject, argument5.value());
11127 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11128 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
11129 InspectorCanvasCallTracer::recordAction(impl, "drawRangeElements"_s, { InspectorCanvasCallTracer::processArgument(impl, mode), InspectorCanvasCallTracer::processArgument(impl, start), InspectorCanvasCallTracer::processArgument(impl, end), InspectorCanvasCallTracer::processArgument(impl, count), InspectorCanvasCallTracer::processArgument(impl, type), InspectorCanvasCallTracer::processArgument(impl, offset) });
11130 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.drawRangeElements(WTFMove(mode), WTFMove(start), WTFMove(end), WTFMove(count), WTFMove(type), WTFMove(offset)); })));
11131}
11132
11133JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_drawRangeElements, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
11134{
11135 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_drawRangeElementsBody>(*lexicalGlobalObject, *callFrame, "drawRangeElements");
11136}
11137
11138static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_drawBuffersBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
11139{
11140 auto& vm = JSC::getVM(lexicalGlobalObject);
11141 auto throwScope = DECLARE_THROW_SCOPE(vm);
11142 UNUSED_PARAM(throwScope);
11143 UNUSED_PARAM(callFrame);
11144 auto& impl = castedThis->wrapped();
11145 if (UNLIKELY(callFrame->argumentCount() < 1))
11146 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
11147 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
11148 auto buffers = convert<IDLSequence<IDLUnsignedLong>>(*lexicalGlobalObject, argument0.value());
11149 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11150 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
11151 InspectorCanvasCallTracer::recordAction(impl, "drawBuffers"_s, { InspectorCanvasCallTracer::processArgument(impl, buffers) });
11152 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.drawBuffers(WTFMove(buffers)); })));
11153}
11154
11155JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_drawBuffers, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
11156{
11157 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_drawBuffersBody>(*lexicalGlobalObject, *callFrame, "drawBuffers");
11158}
11159
11160static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_clearBufferivBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
11161{
11162 auto& vm = JSC::getVM(lexicalGlobalObject);
11163 auto throwScope = DECLARE_THROW_SCOPE(vm);
11164 UNUSED_PARAM(throwScope);
11165 UNUSED_PARAM(callFrame);
11166 auto& impl = castedThis->wrapped();
11167 if (UNLIKELY(callFrame->argumentCount() < 3))
11168 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
11169 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
11170 auto buffer = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
11171 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11172 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
11173 auto drawbuffer = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
11174 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11175 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
11176 auto values = convert<IDLUnion<IDLAllowSharedAdaptor<IDLInt32Array>, IDLSequence<IDLLong>>>(*lexicalGlobalObject, argument2.value());
11177 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11178 EnsureStillAliveScope argument3 = callFrame->argument(3);
11179 auto srcOffset = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument3.value());
11180 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11181 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
11182 InspectorCanvasCallTracer::recordAction(impl, "clearBufferiv"_s, { InspectorCanvasCallTracer::processArgument(impl, buffer), InspectorCanvasCallTracer::processArgument(impl, drawbuffer), InspectorCanvasCallTracer::processArgument(impl, values), InspectorCanvasCallTracer::processArgument(impl, srcOffset) });
11183 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.clearBufferiv(WTFMove(buffer), WTFMove(drawbuffer), WTFMove(values), WTFMove(srcOffset)); })));
11184}
11185
11186JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_clearBufferiv, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
11187{
11188 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_clearBufferivBody>(*lexicalGlobalObject, *callFrame, "clearBufferiv");
11189}
11190
11191static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_clearBufferuivBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
11192{
11193 auto& vm = JSC::getVM(lexicalGlobalObject);
11194 auto throwScope = DECLARE_THROW_SCOPE(vm);
11195 UNUSED_PARAM(throwScope);
11196 UNUSED_PARAM(callFrame);
11197 auto& impl = castedThis->wrapped();
11198 if (UNLIKELY(callFrame->argumentCount() < 3))
11199 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
11200 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
11201 auto buffer = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
11202 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11203 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
11204 auto drawbuffer = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
11205 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11206 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
11207 auto values = convert<IDLUnion<IDLAllowSharedAdaptor<IDLUint32Array>, IDLSequence<IDLUnsignedLong>>>(*lexicalGlobalObject, argument2.value());
11208 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11209 EnsureStillAliveScope argument3 = callFrame->argument(3);
11210 auto srcOffset = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument3.value());
11211 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11212 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
11213 InspectorCanvasCallTracer::recordAction(impl, "clearBufferuiv"_s, { InspectorCanvasCallTracer::processArgument(impl, buffer), InspectorCanvasCallTracer::processArgument(impl, drawbuffer), InspectorCanvasCallTracer::processArgument(impl, values), InspectorCanvasCallTracer::processArgument(impl, srcOffset) });
11214 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.clearBufferuiv(WTFMove(buffer), WTFMove(drawbuffer), WTFMove(values), WTFMove(srcOffset)); })));
11215}
11216
11217JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_clearBufferuiv, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
11218{
11219 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_clearBufferuivBody>(*lexicalGlobalObject, *callFrame, "clearBufferuiv");
11220}
11221
11222static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_clearBufferfvBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
11223{
11224 auto& vm = JSC::getVM(lexicalGlobalObject);
11225 auto throwScope = DECLARE_THROW_SCOPE(vm);
11226 UNUSED_PARAM(throwScope);
11227 UNUSED_PARAM(callFrame);
11228 auto& impl = castedThis->wrapped();
11229 if (UNLIKELY(callFrame->argumentCount() < 3))
11230 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
11231 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
11232 auto buffer = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
11233 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11234 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
11235 auto drawbuffer = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
11236 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11237 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
11238 auto values = convert<IDLUnion<IDLAllowSharedAdaptor<IDLFloat32Array>, IDLSequence<IDLUnrestrictedFloat>>>(*lexicalGlobalObject, argument2.value());
11239 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11240 EnsureStillAliveScope argument3 = callFrame->argument(3);
11241 auto srcOffset = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument3.value());
11242 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11243 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
11244 InspectorCanvasCallTracer::recordAction(impl, "clearBufferfv"_s, { InspectorCanvasCallTracer::processArgument(impl, buffer), InspectorCanvasCallTracer::processArgument(impl, drawbuffer), InspectorCanvasCallTracer::processArgument(impl, values), InspectorCanvasCallTracer::processArgument(impl, srcOffset) });
11245 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.clearBufferfv(WTFMove(buffer), WTFMove(drawbuffer), WTFMove(values), WTFMove(srcOffset)); })));
11246}
11247
11248JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_clearBufferfv, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
11249{
11250 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_clearBufferfvBody>(*lexicalGlobalObject, *callFrame, "clearBufferfv");
11251}
11252
11253static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_clearBufferfiBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
11254{
11255 auto& vm = JSC::getVM(lexicalGlobalObject);
11256 auto throwScope = DECLARE_THROW_SCOPE(vm);
11257 UNUSED_PARAM(throwScope);
11258 UNUSED_PARAM(callFrame);
11259 auto& impl = castedThis->wrapped();
11260 if (UNLIKELY(callFrame->argumentCount() < 4))
11261 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
11262 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
11263 auto buffer = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
11264 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11265 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
11266 auto drawbuffer = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
11267 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11268 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
11269 auto depth = convert<IDLUnrestrictedFloat>(*lexicalGlobalObject, argument2.value());
11270 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11271 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
11272 auto stencil = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
11273 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11274 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
11275 InspectorCanvasCallTracer::recordAction(impl, "clearBufferfi"_s, { InspectorCanvasCallTracer::processArgument(impl, buffer), InspectorCanvasCallTracer::processArgument(impl, drawbuffer), InspectorCanvasCallTracer::processArgument(impl, depth), InspectorCanvasCallTracer::processArgument(impl, stencil) });
11276 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.clearBufferfi(WTFMove(buffer), WTFMove(drawbuffer), WTFMove(depth), WTFMove(stencil)); })));
11277}
11278
11279JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_clearBufferfi, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
11280{
11281 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_clearBufferfiBody>(*lexicalGlobalObject, *callFrame, "clearBufferfi");
11282}
11283
11284static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_createQueryBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
11285{
11286 auto& vm = JSC::getVM(lexicalGlobalObject);
11287 auto throwScope = DECLARE_THROW_SCOPE(vm);
11288 UNUSED_PARAM(throwScope);
11289 UNUSED_PARAM(callFrame);
11290 auto& impl = castedThis->wrapped();
11291 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
11292 InspectorCanvasCallTracer::recordAction(impl, "createQuery"_s);
11293 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLNullable<IDLInterface<WebGLQuery>>>(*lexicalGlobalObject, *castedThis->globalObject(), throwScope, impl.createQuery())));
11294}
11295
11296JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_createQuery, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
11297{
11298 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_createQueryBody>(*lexicalGlobalObject, *callFrame, "createQuery");
11299}
11300
11301static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_deleteQueryBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
11302{
11303 auto& vm = JSC::getVM(lexicalGlobalObject);
11304 auto throwScope = DECLARE_THROW_SCOPE(vm);
11305 UNUSED_PARAM(throwScope);
11306 UNUSED_PARAM(callFrame);
11307 auto& impl = castedThis->wrapped();
11308 if (UNLIKELY(callFrame->argumentCount() < 1))
11309 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
11310 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
11311 auto query = convert<IDLNullable<IDLInterface<WebGLQuery>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "query", "WebGL2RenderingContext", "deleteQuery", "WebGLQuery"); });
11312 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11313 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
11314 InspectorCanvasCallTracer::recordAction(impl, "deleteQuery"_s, { InspectorCanvasCallTracer::processArgument(impl, query) });
11315 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.deleteQuery(WTFMove(query)); })));
11316}
11317
11318JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_deleteQuery, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
11319{
11320 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_deleteQueryBody>(*lexicalGlobalObject, *callFrame, "deleteQuery");
11321}
11322
11323static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_isQueryBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
11324{
11325 auto& vm = JSC::getVM(lexicalGlobalObject);
11326 auto throwScope = DECLARE_THROW_SCOPE(vm);
11327 UNUSED_PARAM(throwScope);
11328 UNUSED_PARAM(callFrame);
11329 auto& impl = castedThis->wrapped();
11330 if (UNLIKELY(callFrame->argumentCount() < 1))
11331 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
11332 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
11333 auto query = convert<IDLNullable<IDLInterface<WebGLQuery>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "query", "WebGL2RenderingContext", "isQuery", "WebGLQuery"); });
11334 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11335 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
11336 InspectorCanvasCallTracer::recordAction(impl, "isQuery"_s, { InspectorCanvasCallTracer::processArgument(impl, query) });
11337 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLBoolean>(*lexicalGlobalObject, throwScope, impl.isQuery(WTFMove(query)))));
11338}
11339
11340JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_isQuery, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
11341{
11342 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_isQueryBody>(*lexicalGlobalObject, *callFrame, "isQuery");
11343}
11344
11345static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_beginQueryBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
11346{
11347 auto& vm = JSC::getVM(lexicalGlobalObject);
11348 auto throwScope = DECLARE_THROW_SCOPE(vm);
11349 UNUSED_PARAM(throwScope);
11350 UNUSED_PARAM(callFrame);
11351 auto& impl = castedThis->wrapped();
11352 if (UNLIKELY(callFrame->argumentCount() < 2))
11353 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
11354 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
11355 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
11356 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11357 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
11358 auto query = convert<IDLInterface<WebGLQuery>>(*lexicalGlobalObject, argument1.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 1, "query", "WebGL2RenderingContext", "beginQuery", "WebGLQuery"); });
11359 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11360 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
11361 InspectorCanvasCallTracer::recordAction(impl, "beginQuery"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, query) });
11362 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.beginQuery(WTFMove(target), *query); })));
11363}
11364
11365JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_beginQuery, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
11366{
11367 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_beginQueryBody>(*lexicalGlobalObject, *callFrame, "beginQuery");
11368}
11369
11370static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_endQueryBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
11371{
11372 auto& vm = JSC::getVM(lexicalGlobalObject);
11373 auto throwScope = DECLARE_THROW_SCOPE(vm);
11374 UNUSED_PARAM(throwScope);
11375 UNUSED_PARAM(callFrame);
11376 auto& impl = castedThis->wrapped();
11377 if (UNLIKELY(callFrame->argumentCount() < 1))
11378 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
11379 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
11380 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
11381 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11382 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
11383 InspectorCanvasCallTracer::recordAction(impl, "endQuery"_s, { InspectorCanvasCallTracer::processArgument(impl, target) });
11384 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.endQuery(WTFMove(target)); })));
11385}
11386
11387JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_endQuery, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
11388{
11389 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_endQueryBody>(*lexicalGlobalObject, *callFrame, "endQuery");
11390}
11391
11392static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_getQueryBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
11393{
11394 auto& vm = JSC::getVM(lexicalGlobalObject);
11395 auto throwScope = DECLARE_THROW_SCOPE(vm);
11396 UNUSED_PARAM(throwScope);
11397 UNUSED_PARAM(callFrame);
11398 auto& impl = castedThis->wrapped();
11399 if (UNLIKELY(callFrame->argumentCount() < 2))
11400 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
11401 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
11402 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
11403 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11404 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
11405 auto pname = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
11406 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11407 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
11408 InspectorCanvasCallTracer::recordAction(impl, "getQuery"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, pname) });
11409 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLNullable<IDLInterface<WebGLQuery>>>(*lexicalGlobalObject, *castedThis->globalObject(), throwScope, impl.getQuery(WTFMove(target), WTFMove(pname)))));
11410}
11411
11412JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getQuery, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
11413{
11414 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_getQueryBody>(*lexicalGlobalObject, *callFrame, "getQuery");
11415}
11416
11417static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_getQueryParameterBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
11418{
11419 auto& vm = JSC::getVM(lexicalGlobalObject);
11420 auto throwScope = DECLARE_THROW_SCOPE(vm);
11421 UNUSED_PARAM(throwScope);
11422 UNUSED_PARAM(callFrame);
11423 auto& impl = castedThis->wrapped();
11424 if (UNLIKELY(callFrame->argumentCount() < 2))
11425 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
11426 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
11427 auto query = convert<IDLInterface<WebGLQuery>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "query", "WebGL2RenderingContext", "getQueryParameter", "WebGLQuery"); });
11428 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11429 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
11430 auto pname = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
11431 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11432 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
11433 InspectorCanvasCallTracer::recordAction(impl, "getQueryParameter"_s, { InspectorCanvasCallTracer::processArgument(impl, query), InspectorCanvasCallTracer::processArgument(impl, pname) });
11434 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLWebGLAny>(*lexicalGlobalObject, *castedThis->globalObject(), throwScope, impl.getQueryParameter(*query, WTFMove(pname)))));
11435}
11436
11437JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getQueryParameter, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
11438{
11439 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_getQueryParameterBody>(*lexicalGlobalObject, *callFrame, "getQueryParameter");
11440}
11441
11442static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_createSamplerBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
11443{
11444 auto& vm = JSC::getVM(lexicalGlobalObject);
11445 auto throwScope = DECLARE_THROW_SCOPE(vm);
11446 UNUSED_PARAM(throwScope);
11447 UNUSED_PARAM(callFrame);
11448 auto& impl = castedThis->wrapped();
11449 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
11450 InspectorCanvasCallTracer::recordAction(impl, "createSampler"_s);
11451 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLNullable<IDLInterface<WebGLSampler>>>(*lexicalGlobalObject, *castedThis->globalObject(), throwScope, impl.createSampler())));
11452}
11453
11454JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_createSampler, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
11455{
11456 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_createSamplerBody>(*lexicalGlobalObject, *callFrame, "createSampler");
11457}
11458
11459static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_deleteSamplerBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
11460{
11461 auto& vm = JSC::getVM(lexicalGlobalObject);
11462 auto throwScope = DECLARE_THROW_SCOPE(vm);
11463 UNUSED_PARAM(throwScope);
11464 UNUSED_PARAM(callFrame);
11465 auto& impl = castedThis->wrapped();
11466 if (UNLIKELY(callFrame->argumentCount() < 1))
11467 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
11468 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
11469 auto sampler = convert<IDLNullable<IDLInterface<WebGLSampler>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "sampler", "WebGL2RenderingContext", "deleteSampler", "WebGLSampler"); });
11470 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11471 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
11472 InspectorCanvasCallTracer::recordAction(impl, "deleteSampler"_s, { InspectorCanvasCallTracer::processArgument(impl, sampler) });
11473 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.deleteSampler(WTFMove(sampler)); })));
11474}
11475
11476JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_deleteSampler, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
11477{
11478 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_deleteSamplerBody>(*lexicalGlobalObject, *callFrame, "deleteSampler");
11479}
11480
11481static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_isSamplerBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
11482{
11483 auto& vm = JSC::getVM(lexicalGlobalObject);
11484 auto throwScope = DECLARE_THROW_SCOPE(vm);
11485 UNUSED_PARAM(throwScope);
11486 UNUSED_PARAM(callFrame);
11487 auto& impl = castedThis->wrapped();
11488 if (UNLIKELY(callFrame->argumentCount() < 1))
11489 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
11490 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
11491 auto sampler = convert<IDLNullable<IDLInterface<WebGLSampler>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "sampler", "WebGL2RenderingContext", "isSampler", "WebGLSampler"); });
11492 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11493 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
11494 InspectorCanvasCallTracer::recordAction(impl, "isSampler"_s, { InspectorCanvasCallTracer::processArgument(impl, sampler) });
11495 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLBoolean>(*lexicalGlobalObject, throwScope, impl.isSampler(WTFMove(sampler)))));
11496}
11497
11498JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_isSampler, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
11499{
11500 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_isSamplerBody>(*lexicalGlobalObject, *callFrame, "isSampler");
11501}
11502
11503static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_bindSamplerBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
11504{
11505 auto& vm = JSC::getVM(lexicalGlobalObject);
11506 auto throwScope = DECLARE_THROW_SCOPE(vm);
11507 UNUSED_PARAM(throwScope);
11508 UNUSED_PARAM(callFrame);
11509 auto& impl = castedThis->wrapped();
11510 if (UNLIKELY(callFrame->argumentCount() < 2))
11511 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
11512 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
11513 auto unit = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
11514 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11515 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
11516 auto sampler = convert<IDLNullable<IDLInterface<WebGLSampler>>>(*lexicalGlobalObject, argument1.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 1, "sampler", "WebGL2RenderingContext", "bindSampler", "WebGLSampler"); });
11517 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11518 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
11519 InspectorCanvasCallTracer::recordAction(impl, "bindSampler"_s, { InspectorCanvasCallTracer::processArgument(impl, unit), InspectorCanvasCallTracer::processArgument(impl, sampler) });
11520 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.bindSampler(WTFMove(unit), WTFMove(sampler)); })));
11521}
11522
11523JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_bindSampler, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
11524{
11525 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_bindSamplerBody>(*lexicalGlobalObject, *callFrame, "bindSampler");
11526}
11527
11528static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_samplerParameteriBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
11529{
11530 auto& vm = JSC::getVM(lexicalGlobalObject);
11531 auto throwScope = DECLARE_THROW_SCOPE(vm);
11532 UNUSED_PARAM(throwScope);
11533 UNUSED_PARAM(callFrame);
11534 auto& impl = castedThis->wrapped();
11535 if (UNLIKELY(callFrame->argumentCount() < 3))
11536 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
11537 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
11538 auto sampler = convert<IDLInterface<WebGLSampler>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "sampler", "WebGL2RenderingContext", "samplerParameteri", "WebGLSampler"); });
11539 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11540 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
11541 auto pname = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
11542 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11543 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
11544 auto param = convert<IDLLong>(*lexicalGlobalObject, argument2.value());
11545 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11546 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
11547 InspectorCanvasCallTracer::recordAction(impl, "samplerParameteri"_s, { InspectorCanvasCallTracer::processArgument(impl, sampler), InspectorCanvasCallTracer::processArgument(impl, pname), InspectorCanvasCallTracer::processArgument(impl, param) });
11548 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.samplerParameteri(*sampler, WTFMove(pname), WTFMove(param)); })));
11549}
11550
11551JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_samplerParameteri, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
11552{
11553 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_samplerParameteriBody>(*lexicalGlobalObject, *callFrame, "samplerParameteri");
11554}
11555
11556static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_samplerParameterfBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
11557{
11558 auto& vm = JSC::getVM(lexicalGlobalObject);
11559 auto throwScope = DECLARE_THROW_SCOPE(vm);
11560 UNUSED_PARAM(throwScope);
11561 UNUSED_PARAM(callFrame);
11562 auto& impl = castedThis->wrapped();
11563 if (UNLIKELY(callFrame->argumentCount() < 3))
11564 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
11565 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
11566 auto sampler = convert<IDLInterface<WebGLSampler>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "sampler", "WebGL2RenderingContext", "samplerParameterf", "WebGLSampler"); });
11567 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11568 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
11569 auto pname = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
11570 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11571 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
11572 auto param = convert<IDLUnrestrictedFloat>(*lexicalGlobalObject, argument2.value());
11573 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11574 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
11575 InspectorCanvasCallTracer::recordAction(impl, "samplerParameterf"_s, { InspectorCanvasCallTracer::processArgument(impl, sampler), InspectorCanvasCallTracer::processArgument(impl, pname), InspectorCanvasCallTracer::processArgument(impl, param) });
11576 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.samplerParameterf(*sampler, WTFMove(pname), WTFMove(param)); })));
11577}
11578
11579JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_samplerParameterf, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
11580{
11581 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_samplerParameterfBody>(*lexicalGlobalObject, *callFrame, "samplerParameterf");
11582}
11583
11584static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_getSamplerParameterBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
11585{
11586 auto& vm = JSC::getVM(lexicalGlobalObject);
11587 auto throwScope = DECLARE_THROW_SCOPE(vm);
11588 UNUSED_PARAM(throwScope);
11589 UNUSED_PARAM(callFrame);
11590 auto& impl = castedThis->wrapped();
11591 if (UNLIKELY(callFrame->argumentCount() < 2))
11592 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
11593 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
11594 auto sampler = convert<IDLInterface<WebGLSampler>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "sampler", "WebGL2RenderingContext", "getSamplerParameter", "WebGLSampler"); });
11595 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11596 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
11597 auto pname = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
11598 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11599 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
11600 InspectorCanvasCallTracer::recordAction(impl, "getSamplerParameter"_s, { InspectorCanvasCallTracer::processArgument(impl, sampler), InspectorCanvasCallTracer::processArgument(impl, pname) });
11601 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLWebGLAny>(*lexicalGlobalObject, *castedThis->globalObject(), throwScope, impl.getSamplerParameter(*sampler, WTFMove(pname)))));
11602}
11603
11604JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getSamplerParameter, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
11605{
11606 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_getSamplerParameterBody>(*lexicalGlobalObject, *callFrame, "getSamplerParameter");
11607}
11608
11609static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_fenceSyncBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
11610{
11611 auto& vm = JSC::getVM(lexicalGlobalObject);
11612 auto throwScope = DECLARE_THROW_SCOPE(vm);
11613 UNUSED_PARAM(throwScope);
11614 UNUSED_PARAM(callFrame);
11615 auto& impl = castedThis->wrapped();
11616 if (UNLIKELY(callFrame->argumentCount() < 2))
11617 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
11618 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
11619 auto condition = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
11620 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11621 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
11622 auto flags = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
11623 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11624 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
11625 InspectorCanvasCallTracer::recordAction(impl, "fenceSync"_s, { InspectorCanvasCallTracer::processArgument(impl, condition), InspectorCanvasCallTracer::processArgument(impl, flags) });
11626 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLNullable<IDLInterface<WebGLSync>>>(*lexicalGlobalObject, *castedThis->globalObject(), throwScope, impl.fenceSync(WTFMove(condition), WTFMove(flags)))));
11627}
11628
11629JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_fenceSync, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
11630{
11631 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_fenceSyncBody>(*lexicalGlobalObject, *callFrame, "fenceSync");
11632}
11633
11634static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_isSyncBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
11635{
11636 auto& vm = JSC::getVM(lexicalGlobalObject);
11637 auto throwScope = DECLARE_THROW_SCOPE(vm);
11638 UNUSED_PARAM(throwScope);
11639 UNUSED_PARAM(callFrame);
11640 auto& impl = castedThis->wrapped();
11641 if (UNLIKELY(callFrame->argumentCount() < 1))
11642 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
11643 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
11644 auto sync = convert<IDLNullable<IDLInterface<WebGLSync>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "sync", "WebGL2RenderingContext", "isSync", "WebGLSync"); });
11645 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11646 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
11647 InspectorCanvasCallTracer::recordAction(impl, "isSync"_s, { InspectorCanvasCallTracer::processArgument(impl, sync) });
11648 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLBoolean>(*lexicalGlobalObject, throwScope, impl.isSync(WTFMove(sync)))));
11649}
11650
11651JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_isSync, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
11652{
11653 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_isSyncBody>(*lexicalGlobalObject, *callFrame, "isSync");
11654}
11655
11656static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_deleteSyncBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
11657{
11658 auto& vm = JSC::getVM(lexicalGlobalObject);
11659 auto throwScope = DECLARE_THROW_SCOPE(vm);
11660 UNUSED_PARAM(throwScope);
11661 UNUSED_PARAM(callFrame);
11662 auto& impl = castedThis->wrapped();
11663 if (UNLIKELY(callFrame->argumentCount() < 1))
11664 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
11665 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
11666 auto sync = convert<IDLNullable<IDLInterface<WebGLSync>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "sync", "WebGL2RenderingContext", "deleteSync", "WebGLSync"); });
11667 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11668 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
11669 InspectorCanvasCallTracer::recordAction(impl, "deleteSync"_s, { InspectorCanvasCallTracer::processArgument(impl, sync) });
11670 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.deleteSync(WTFMove(sync)); })));
11671}
11672
11673JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_deleteSync, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
11674{
11675 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_deleteSyncBody>(*lexicalGlobalObject, *callFrame, "deleteSync");
11676}
11677
11678static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_clientWaitSyncBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
11679{
11680 auto& vm = JSC::getVM(lexicalGlobalObject);
11681 auto throwScope = DECLARE_THROW_SCOPE(vm);
11682 UNUSED_PARAM(throwScope);
11683 UNUSED_PARAM(callFrame);
11684 auto& impl = castedThis->wrapped();
11685 if (UNLIKELY(callFrame->argumentCount() < 3))
11686 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
11687 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
11688 auto sync = convert<IDLInterface<WebGLSync>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "sync", "WebGL2RenderingContext", "clientWaitSync", "WebGLSync"); });
11689 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11690 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
11691 auto flags = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
11692 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11693 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
11694 auto timeout = convert<IDLUnsignedLongLong>(*lexicalGlobalObject, argument2.value());
11695 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11696 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
11697 InspectorCanvasCallTracer::recordAction(impl, "clientWaitSync"_s, { InspectorCanvasCallTracer::processArgument(impl, sync), InspectorCanvasCallTracer::processArgument(impl, flags), InspectorCanvasCallTracer::processArgument(impl, timeout) });
11698 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUnsignedLong>(*lexicalGlobalObject, throwScope, impl.clientWaitSync(*sync, WTFMove(flags), WTFMove(timeout)))));
11699}
11700
11701JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_clientWaitSync, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
11702{
11703 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_clientWaitSyncBody>(*lexicalGlobalObject, *callFrame, "clientWaitSync");
11704}
11705
11706static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_waitSyncBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
11707{
11708 auto& vm = JSC::getVM(lexicalGlobalObject);
11709 auto throwScope = DECLARE_THROW_SCOPE(vm);
11710 UNUSED_PARAM(throwScope);
11711 UNUSED_PARAM(callFrame);
11712 auto& impl = castedThis->wrapped();
11713 if (UNLIKELY(callFrame->argumentCount() < 3))
11714 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
11715 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
11716 auto sync = convert<IDLInterface<WebGLSync>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "sync", "WebGL2RenderingContext", "waitSync", "WebGLSync"); });
11717 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11718 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
11719 auto flags = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
11720 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11721 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
11722 auto timeout = convert<IDLLongLong>(*lexicalGlobalObject, argument2.value());
11723 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11724 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
11725 InspectorCanvasCallTracer::recordAction(impl, "waitSync"_s, { InspectorCanvasCallTracer::processArgument(impl, sync), InspectorCanvasCallTracer::processArgument(impl, flags), InspectorCanvasCallTracer::processArgument(impl, timeout) });
11726 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.waitSync(*sync, WTFMove(flags), WTFMove(timeout)); })));
11727}
11728
11729JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_waitSync, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
11730{
11731 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_waitSyncBody>(*lexicalGlobalObject, *callFrame, "waitSync");
11732}
11733
11734static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_getSyncParameterBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
11735{
11736 auto& vm = JSC::getVM(lexicalGlobalObject);
11737 auto throwScope = DECLARE_THROW_SCOPE(vm);
11738 UNUSED_PARAM(throwScope);
11739 UNUSED_PARAM(callFrame);
11740 auto& impl = castedThis->wrapped();
11741 if (UNLIKELY(callFrame->argumentCount() < 2))
11742 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
11743 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
11744 auto sync = convert<IDLInterface<WebGLSync>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "sync", "WebGL2RenderingContext", "getSyncParameter", "WebGLSync"); });
11745 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11746 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
11747 auto pname = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
11748 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11749 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
11750 InspectorCanvasCallTracer::recordAction(impl, "getSyncParameter"_s, { InspectorCanvasCallTracer::processArgument(impl, sync), InspectorCanvasCallTracer::processArgument(impl, pname) });
11751 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLWebGLAny>(*lexicalGlobalObject, *castedThis->globalObject(), throwScope, impl.getSyncParameter(*sync, WTFMove(pname)))));
11752}
11753
11754JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getSyncParameter, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
11755{
11756 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_getSyncParameterBody>(*lexicalGlobalObject, *callFrame, "getSyncParameter");
11757}
11758
11759static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_createTransformFeedbackBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
11760{
11761 auto& vm = JSC::getVM(lexicalGlobalObject);
11762 auto throwScope = DECLARE_THROW_SCOPE(vm);
11763 UNUSED_PARAM(throwScope);
11764 UNUSED_PARAM(callFrame);
11765 auto& impl = castedThis->wrapped();
11766 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
11767 InspectorCanvasCallTracer::recordAction(impl, "createTransformFeedback"_s);
11768 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLNullable<IDLInterface<WebGLTransformFeedback>>>(*lexicalGlobalObject, *castedThis->globalObject(), throwScope, impl.createTransformFeedback())));
11769}
11770
11771JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_createTransformFeedback, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
11772{
11773 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_createTransformFeedbackBody>(*lexicalGlobalObject, *callFrame, "createTransformFeedback");
11774}
11775
11776static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_deleteTransformFeedbackBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
11777{
11778 auto& vm = JSC::getVM(lexicalGlobalObject);
11779 auto throwScope = DECLARE_THROW_SCOPE(vm);
11780 UNUSED_PARAM(throwScope);
11781 UNUSED_PARAM(callFrame);
11782 auto& impl = castedThis->wrapped();
11783 if (UNLIKELY(callFrame->argumentCount() < 1))
11784 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
11785 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
11786 auto id = convert<IDLNullable<IDLInterface<WebGLTransformFeedback>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "id", "WebGL2RenderingContext", "deleteTransformFeedback", "WebGLTransformFeedback"); });
11787 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11788 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
11789 InspectorCanvasCallTracer::recordAction(impl, "deleteTransformFeedback"_s, { InspectorCanvasCallTracer::processArgument(impl, id) });
11790 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.deleteTransformFeedback(WTFMove(id)); })));
11791}
11792
11793JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_deleteTransformFeedback, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
11794{
11795 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_deleteTransformFeedbackBody>(*lexicalGlobalObject, *callFrame, "deleteTransformFeedback");
11796}
11797
11798static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_isTransformFeedbackBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
11799{
11800 auto& vm = JSC::getVM(lexicalGlobalObject);
11801 auto throwScope = DECLARE_THROW_SCOPE(vm);
11802 UNUSED_PARAM(throwScope);
11803 UNUSED_PARAM(callFrame);
11804 auto& impl = castedThis->wrapped();
11805 if (UNLIKELY(callFrame->argumentCount() < 1))
11806 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
11807 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
11808 auto id = convert<IDLNullable<IDLInterface<WebGLTransformFeedback>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "id", "WebGL2RenderingContext", "isTransformFeedback", "WebGLTransformFeedback"); });
11809 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11810 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
11811 InspectorCanvasCallTracer::recordAction(impl, "isTransformFeedback"_s, { InspectorCanvasCallTracer::processArgument(impl, id) });
11812 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLBoolean>(*lexicalGlobalObject, throwScope, impl.isTransformFeedback(WTFMove(id)))));
11813}
11814
11815JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_isTransformFeedback, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
11816{
11817 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_isTransformFeedbackBody>(*lexicalGlobalObject, *callFrame, "isTransformFeedback");
11818}
11819
11820static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_bindTransformFeedbackBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
11821{
11822 auto& vm = JSC::getVM(lexicalGlobalObject);
11823 auto throwScope = DECLARE_THROW_SCOPE(vm);
11824 UNUSED_PARAM(throwScope);
11825 UNUSED_PARAM(callFrame);
11826 auto& impl = castedThis->wrapped();
11827 if (UNLIKELY(callFrame->argumentCount() < 2))
11828 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
11829 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
11830 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
11831 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11832 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
11833 auto id = convert<IDLNullable<IDLInterface<WebGLTransformFeedback>>>(*lexicalGlobalObject, argument1.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 1, "id", "WebGL2RenderingContext", "bindTransformFeedback", "WebGLTransformFeedback"); });
11834 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11835 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
11836 InspectorCanvasCallTracer::recordAction(impl, "bindTransformFeedback"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, id) });
11837 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.bindTransformFeedback(WTFMove(target), WTFMove(id)); })));
11838}
11839
11840JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_bindTransformFeedback, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
11841{
11842 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_bindTransformFeedbackBody>(*lexicalGlobalObject, *callFrame, "bindTransformFeedback");
11843}
11844
11845static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_beginTransformFeedbackBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
11846{
11847 auto& vm = JSC::getVM(lexicalGlobalObject);
11848 auto throwScope = DECLARE_THROW_SCOPE(vm);
11849 UNUSED_PARAM(throwScope);
11850 UNUSED_PARAM(callFrame);
11851 auto& impl = castedThis->wrapped();
11852 if (UNLIKELY(callFrame->argumentCount() < 1))
11853 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
11854 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
11855 auto primitiveMode = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
11856 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11857 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
11858 InspectorCanvasCallTracer::recordAction(impl, "beginTransformFeedback"_s, { InspectorCanvasCallTracer::processArgument(impl, primitiveMode) });
11859 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.beginTransformFeedback(WTFMove(primitiveMode)); })));
11860}
11861
11862JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_beginTransformFeedback, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
11863{
11864 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_beginTransformFeedbackBody>(*lexicalGlobalObject, *callFrame, "beginTransformFeedback");
11865}
11866
11867static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_endTransformFeedbackBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
11868{
11869 auto& vm = JSC::getVM(lexicalGlobalObject);
11870 auto throwScope = DECLARE_THROW_SCOPE(vm);
11871 UNUSED_PARAM(throwScope);
11872 UNUSED_PARAM(callFrame);
11873 auto& impl = castedThis->wrapped();
11874 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
11875 InspectorCanvasCallTracer::recordAction(impl, "endTransformFeedback"_s);
11876 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.endTransformFeedback(); })));
11877}
11878
11879JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_endTransformFeedback, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
11880{
11881 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_endTransformFeedbackBody>(*lexicalGlobalObject, *callFrame, "endTransformFeedback");
11882}
11883
11884static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_transformFeedbackVaryingsBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
11885{
11886 auto& vm = JSC::getVM(lexicalGlobalObject);
11887 auto throwScope = DECLARE_THROW_SCOPE(vm);
11888 UNUSED_PARAM(throwScope);
11889 UNUSED_PARAM(callFrame);
11890 auto& impl = castedThis->wrapped();
11891 if (UNLIKELY(callFrame->argumentCount() < 3))
11892 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
11893 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
11894 auto program = convert<IDLInterface<WebGLProgram>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "program", "WebGL2RenderingContext", "transformFeedbackVaryings", "WebGLProgram"); });
11895 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11896 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
11897 auto varyings = convert<IDLSequence<IDLDOMString>>(*lexicalGlobalObject, argument1.value());
11898 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11899 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
11900 auto bufferMode = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
11901 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11902 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
11903 InspectorCanvasCallTracer::recordAction(impl, "transformFeedbackVaryings"_s, { InspectorCanvasCallTracer::processArgument(impl, program), InspectorCanvasCallTracer::processArgument(impl, varyings), InspectorCanvasCallTracer::processArgument(impl, bufferMode) });
11904 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.transformFeedbackVaryings(*program, WTFMove(varyings), WTFMove(bufferMode)); })));
11905}
11906
11907JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_transformFeedbackVaryings, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
11908{
11909 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_transformFeedbackVaryingsBody>(*lexicalGlobalObject, *callFrame, "transformFeedbackVaryings");
11910}
11911
11912static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_getTransformFeedbackVaryingBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
11913{
11914 auto& vm = JSC::getVM(lexicalGlobalObject);
11915 auto throwScope = DECLARE_THROW_SCOPE(vm);
11916 UNUSED_PARAM(throwScope);
11917 UNUSED_PARAM(callFrame);
11918 auto& impl = castedThis->wrapped();
11919 if (UNLIKELY(callFrame->argumentCount() < 2))
11920 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
11921 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
11922 auto program = convert<IDLInterface<WebGLProgram>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "program", "WebGL2RenderingContext", "getTransformFeedbackVarying", "WebGLProgram"); });
11923 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11924 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
11925 auto index = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
11926 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11927 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
11928 InspectorCanvasCallTracer::recordAction(impl, "getTransformFeedbackVarying"_s, { InspectorCanvasCallTracer::processArgument(impl, program), InspectorCanvasCallTracer::processArgument(impl, index) });
11929 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLNullable<IDLInterface<WebGLActiveInfo>>>(*lexicalGlobalObject, *castedThis->globalObject(), throwScope, impl.getTransformFeedbackVarying(*program, WTFMove(index)))));
11930}
11931
11932JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getTransformFeedbackVarying, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
11933{
11934 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_getTransformFeedbackVaryingBody>(*lexicalGlobalObject, *callFrame, "getTransformFeedbackVarying");
11935}
11936
11937static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_pauseTransformFeedbackBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
11938{
11939 auto& vm = JSC::getVM(lexicalGlobalObject);
11940 auto throwScope = DECLARE_THROW_SCOPE(vm);
11941 UNUSED_PARAM(throwScope);
11942 UNUSED_PARAM(callFrame);
11943 auto& impl = castedThis->wrapped();
11944 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
11945 InspectorCanvasCallTracer::recordAction(impl, "pauseTransformFeedback"_s);
11946 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.pauseTransformFeedback(); })));
11947}
11948
11949JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_pauseTransformFeedback, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
11950{
11951 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_pauseTransformFeedbackBody>(*lexicalGlobalObject, *callFrame, "pauseTransformFeedback");
11952}
11953
11954static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_resumeTransformFeedbackBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
11955{
11956 auto& vm = JSC::getVM(lexicalGlobalObject);
11957 auto throwScope = DECLARE_THROW_SCOPE(vm);
11958 UNUSED_PARAM(throwScope);
11959 UNUSED_PARAM(callFrame);
11960 auto& impl = castedThis->wrapped();
11961 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
11962 InspectorCanvasCallTracer::recordAction(impl, "resumeTransformFeedback"_s);
11963 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.resumeTransformFeedback(); })));
11964}
11965
11966JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_resumeTransformFeedback, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
11967{
11968 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_resumeTransformFeedbackBody>(*lexicalGlobalObject, *callFrame, "resumeTransformFeedback");
11969}
11970
11971static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_bindBufferBaseBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
11972{
11973 auto& vm = JSC::getVM(lexicalGlobalObject);
11974 auto throwScope = DECLARE_THROW_SCOPE(vm);
11975 UNUSED_PARAM(throwScope);
11976 UNUSED_PARAM(callFrame);
11977 auto& impl = castedThis->wrapped();
11978 if (UNLIKELY(callFrame->argumentCount() < 3))
11979 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
11980 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
11981 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
11982 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11983 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
11984 auto index = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
11985 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11986 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
11987 auto buffer = convert<IDLNullable<IDLInterface<WebGLBuffer>>>(*lexicalGlobalObject, argument2.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 2, "buffer", "WebGL2RenderingContext", "bindBufferBase", "WebGLBuffer"); });
11988 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
11989 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
11990 InspectorCanvasCallTracer::recordAction(impl, "bindBufferBase"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, index), InspectorCanvasCallTracer::processArgument(impl, buffer) });
11991 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.bindBufferBase(WTFMove(target), WTFMove(index), WTFMove(buffer)); })));
11992}
11993
11994JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_bindBufferBase, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
11995{
11996 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_bindBufferBaseBody>(*lexicalGlobalObject, *callFrame, "bindBufferBase");
11997}
11998
11999static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_bindBufferRangeBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
12000{
12001 auto& vm = JSC::getVM(lexicalGlobalObject);
12002 auto throwScope = DECLARE_THROW_SCOPE(vm);
12003 UNUSED_PARAM(throwScope);
12004 UNUSED_PARAM(callFrame);
12005 auto& impl = castedThis->wrapped();
12006 if (UNLIKELY(callFrame->argumentCount() < 5))
12007 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
12008 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
12009 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
12010 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12011 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
12012 auto index = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
12013 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12014 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
12015 auto buffer = convert<IDLNullable<IDLInterface<WebGLBuffer>>>(*lexicalGlobalObject, argument2.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 2, "buffer", "WebGL2RenderingContext", "bindBufferRange", "WebGLBuffer"); });
12016 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12017 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
12018 auto offset = convert<IDLLongLong>(*lexicalGlobalObject, argument3.value());
12019 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12020 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
12021 auto size = convert<IDLLongLong>(*lexicalGlobalObject, argument4.value());
12022 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12023 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
12024 InspectorCanvasCallTracer::recordAction(impl, "bindBufferRange"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, index), InspectorCanvasCallTracer::processArgument(impl, buffer), InspectorCanvasCallTracer::processArgument(impl, offset), InspectorCanvasCallTracer::processArgument(impl, size) });
12025 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.bindBufferRange(WTFMove(target), WTFMove(index), WTFMove(buffer), WTFMove(offset), WTFMove(size)); })));
12026}
12027
12028JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_bindBufferRange, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
12029{
12030 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_bindBufferRangeBody>(*lexicalGlobalObject, *callFrame, "bindBufferRange");
12031}
12032
12033static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_getIndexedParameterBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
12034{
12035 auto& vm = JSC::getVM(lexicalGlobalObject);
12036 auto throwScope = DECLARE_THROW_SCOPE(vm);
12037 UNUSED_PARAM(throwScope);
12038 UNUSED_PARAM(callFrame);
12039 auto& impl = castedThis->wrapped();
12040 if (UNLIKELY(callFrame->argumentCount() < 2))
12041 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
12042 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
12043 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
12044 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12045 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
12046 auto index = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
12047 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12048 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
12049 InspectorCanvasCallTracer::recordAction(impl, "getIndexedParameter"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, index) });
12050 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLWebGLAny>(*lexicalGlobalObject, *castedThis->globalObject(), throwScope, impl.getIndexedParameter(WTFMove(target), WTFMove(index)))));
12051}
12052
12053JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getIndexedParameter, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
12054{
12055 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_getIndexedParameterBody>(*lexicalGlobalObject, *callFrame, "getIndexedParameter");
12056}
12057
12058static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_getUniformIndicesBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
12059{
12060 auto& vm = JSC::getVM(lexicalGlobalObject);
12061 auto throwScope = DECLARE_THROW_SCOPE(vm);
12062 UNUSED_PARAM(throwScope);
12063 UNUSED_PARAM(callFrame);
12064 auto& impl = castedThis->wrapped();
12065 if (UNLIKELY(callFrame->argumentCount() < 2))
12066 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
12067 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
12068 auto program = convert<IDLInterface<WebGLProgram>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "program", "WebGL2RenderingContext", "getUniformIndices", "WebGLProgram"); });
12069 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12070 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
12071 auto uniformNames = convert<IDLSequence<IDLDOMString>>(*lexicalGlobalObject, argument1.value());
12072 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12073 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
12074 InspectorCanvasCallTracer::recordAction(impl, "getUniformIndices"_s, { InspectorCanvasCallTracer::processArgument(impl, program), InspectorCanvasCallTracer::processArgument(impl, uniformNames) });
12075 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLNullable<IDLSequence<IDLUnsignedLong>>>(*lexicalGlobalObject, *castedThis->globalObject(), throwScope, impl.getUniformIndices(*program, WTFMove(uniformNames)))));
12076}
12077
12078JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getUniformIndices, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
12079{
12080 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_getUniformIndicesBody>(*lexicalGlobalObject, *callFrame, "getUniformIndices");
12081}
12082
12083static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_getActiveUniformsBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
12084{
12085 auto& vm = JSC::getVM(lexicalGlobalObject);
12086 auto throwScope = DECLARE_THROW_SCOPE(vm);
12087 UNUSED_PARAM(throwScope);
12088 UNUSED_PARAM(callFrame);
12089 auto& impl = castedThis->wrapped();
12090 if (UNLIKELY(callFrame->argumentCount() < 3))
12091 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
12092 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
12093 auto program = convert<IDLInterface<WebGLProgram>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "program", "WebGL2RenderingContext", "getActiveUniforms", "WebGLProgram"); });
12094 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12095 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
12096 auto uniformIndices = convert<IDLSequence<IDLUnsignedLong>>(*lexicalGlobalObject, argument1.value());
12097 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12098 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
12099 auto pname = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
12100 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12101 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
12102 InspectorCanvasCallTracer::recordAction(impl, "getActiveUniforms"_s, { InspectorCanvasCallTracer::processArgument(impl, program), InspectorCanvasCallTracer::processArgument(impl, uniformIndices), InspectorCanvasCallTracer::processArgument(impl, pname) });
12103 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLWebGLAny>(*lexicalGlobalObject, *castedThis->globalObject(), throwScope, impl.getActiveUniforms(*program, WTFMove(uniformIndices), WTFMove(pname)))));
12104}
12105
12106JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getActiveUniforms, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
12107{
12108 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_getActiveUniformsBody>(*lexicalGlobalObject, *callFrame, "getActiveUniforms");
12109}
12110
12111static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_getUniformBlockIndexBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
12112{
12113 auto& vm = JSC::getVM(lexicalGlobalObject);
12114 auto throwScope = DECLARE_THROW_SCOPE(vm);
12115 UNUSED_PARAM(throwScope);
12116 UNUSED_PARAM(callFrame);
12117 auto& impl = castedThis->wrapped();
12118 if (UNLIKELY(callFrame->argumentCount() < 2))
12119 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
12120 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
12121 auto program = convert<IDLInterface<WebGLProgram>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "program", "WebGL2RenderingContext", "getUniformBlockIndex", "WebGLProgram"); });
12122 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12123 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
12124 auto uniformBlockName = convert<IDLDOMString>(*lexicalGlobalObject, argument1.value());
12125 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12126 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
12127 InspectorCanvasCallTracer::recordAction(impl, "getUniformBlockIndex"_s, { InspectorCanvasCallTracer::processArgument(impl, program), InspectorCanvasCallTracer::processArgument(impl, uniformBlockName) });
12128 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUnsignedLong>(*lexicalGlobalObject, throwScope, impl.getUniformBlockIndex(*program, WTFMove(uniformBlockName)))));
12129}
12130
12131JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getUniformBlockIndex, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
12132{
12133 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_getUniformBlockIndexBody>(*lexicalGlobalObject, *callFrame, "getUniformBlockIndex");
12134}
12135
12136static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_getActiveUniformBlockParameterBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
12137{
12138 auto& vm = JSC::getVM(lexicalGlobalObject);
12139 auto throwScope = DECLARE_THROW_SCOPE(vm);
12140 UNUSED_PARAM(throwScope);
12141 UNUSED_PARAM(callFrame);
12142 auto& impl = castedThis->wrapped();
12143 if (UNLIKELY(callFrame->argumentCount() < 3))
12144 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
12145 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
12146 auto program = convert<IDLInterface<WebGLProgram>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "program", "WebGL2RenderingContext", "getActiveUniformBlockParameter", "WebGLProgram"); });
12147 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12148 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
12149 auto uniformBlockIndex = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
12150 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12151 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
12152 auto pname = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
12153 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12154 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
12155 InspectorCanvasCallTracer::recordAction(impl, "getActiveUniformBlockParameter"_s, { InspectorCanvasCallTracer::processArgument(impl, program), InspectorCanvasCallTracer::processArgument(impl, uniformBlockIndex), InspectorCanvasCallTracer::processArgument(impl, pname) });
12156 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLWebGLAny>(*lexicalGlobalObject, *castedThis->globalObject(), throwScope, impl.getActiveUniformBlockParameter(*program, WTFMove(uniformBlockIndex), WTFMove(pname)))));
12157}
12158
12159JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getActiveUniformBlockParameter, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
12160{
12161 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_getActiveUniformBlockParameterBody>(*lexicalGlobalObject, *callFrame, "getActiveUniformBlockParameter");
12162}
12163
12164static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_getActiveUniformBlockNameBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
12165{
12166 auto& vm = JSC::getVM(lexicalGlobalObject);
12167 auto throwScope = DECLARE_THROW_SCOPE(vm);
12168 UNUSED_PARAM(throwScope);
12169 UNUSED_PARAM(callFrame);
12170 auto& impl = castedThis->wrapped();
12171 if (UNLIKELY(callFrame->argumentCount() < 2))
12172 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
12173 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
12174 auto program = convert<IDLInterface<WebGLProgram>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "program", "WebGL2RenderingContext", "getActiveUniformBlockName", "WebGLProgram"); });
12175 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12176 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
12177 auto uniformBlockIndex = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
12178 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12179 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
12180 InspectorCanvasCallTracer::recordAction(impl, "getActiveUniformBlockName"_s, { InspectorCanvasCallTracer::processArgument(impl, program), InspectorCanvasCallTracer::processArgument(impl, uniformBlockIndex) });
12181 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLNullable<IDLWebGLAny>>(*lexicalGlobalObject, *castedThis->globalObject(), throwScope, impl.getActiveUniformBlockName(*program, WTFMove(uniformBlockIndex)))));
12182}
12183
12184JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getActiveUniformBlockName, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
12185{
12186 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_getActiveUniformBlockNameBody>(*lexicalGlobalObject, *callFrame, "getActiveUniformBlockName");
12187}
12188
12189static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniformBlockBindingBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
12190{
12191 auto& vm = JSC::getVM(lexicalGlobalObject);
12192 auto throwScope = DECLARE_THROW_SCOPE(vm);
12193 UNUSED_PARAM(throwScope);
12194 UNUSED_PARAM(callFrame);
12195 auto& impl = castedThis->wrapped();
12196 if (UNLIKELY(callFrame->argumentCount() < 3))
12197 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
12198 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
12199 auto program = convert<IDLInterface<WebGLProgram>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "program", "WebGL2RenderingContext", "uniformBlockBinding", "WebGLProgram"); });
12200 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12201 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
12202 auto uniformBlockIndex = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
12203 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12204 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
12205 auto uniformBlockBinding = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
12206 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12207 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
12208 InspectorCanvasCallTracer::recordAction(impl, "uniformBlockBinding"_s, { InspectorCanvasCallTracer::processArgument(impl, program), InspectorCanvasCallTracer::processArgument(impl, uniformBlockIndex), InspectorCanvasCallTracer::processArgument(impl, uniformBlockBinding) });
12209 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniformBlockBinding(*program, WTFMove(uniformBlockIndex), WTFMove(uniformBlockBinding)); })));
12210}
12211
12212JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniformBlockBinding, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
12213{
12214 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_uniformBlockBindingBody>(*lexicalGlobalObject, *callFrame, "uniformBlockBinding");
12215}
12216
12217static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_createVertexArrayBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
12218{
12219 auto& vm = JSC::getVM(lexicalGlobalObject);
12220 auto throwScope = DECLARE_THROW_SCOPE(vm);
12221 UNUSED_PARAM(throwScope);
12222 UNUSED_PARAM(callFrame);
12223 auto& impl = castedThis->wrapped();
12224 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
12225 InspectorCanvasCallTracer::recordAction(impl, "createVertexArray"_s);
12226 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLNullable<IDLInterface<WebGLVertexArrayObject>>>(*lexicalGlobalObject, *castedThis->globalObject(), throwScope, impl.createVertexArray())));
12227}
12228
12229JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_createVertexArray, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
12230{
12231 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_createVertexArrayBody>(*lexicalGlobalObject, *callFrame, "createVertexArray");
12232}
12233
12234static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_deleteVertexArrayBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
12235{
12236 auto& vm = JSC::getVM(lexicalGlobalObject);
12237 auto throwScope = DECLARE_THROW_SCOPE(vm);
12238 UNUSED_PARAM(throwScope);
12239 UNUSED_PARAM(callFrame);
12240 auto& impl = castedThis->wrapped();
12241 if (UNLIKELY(callFrame->argumentCount() < 1))
12242 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
12243 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
12244 auto vertexArray = convert<IDLNullable<IDLInterface<WebGLVertexArrayObject>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "vertexArray", "WebGL2RenderingContext", "deleteVertexArray", "WebGLVertexArrayObject"); });
12245 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12246 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
12247 InspectorCanvasCallTracer::recordAction(impl, "deleteVertexArray"_s, { InspectorCanvasCallTracer::processArgument(impl, vertexArray) });
12248 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.deleteVertexArray(WTFMove(vertexArray)); })));
12249}
12250
12251JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_deleteVertexArray, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
12252{
12253 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_deleteVertexArrayBody>(*lexicalGlobalObject, *callFrame, "deleteVertexArray");
12254}
12255
12256static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_isVertexArrayBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
12257{
12258 auto& vm = JSC::getVM(lexicalGlobalObject);
12259 auto throwScope = DECLARE_THROW_SCOPE(vm);
12260 UNUSED_PARAM(throwScope);
12261 UNUSED_PARAM(callFrame);
12262 auto& impl = castedThis->wrapped();
12263 if (UNLIKELY(callFrame->argumentCount() < 1))
12264 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
12265 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
12266 auto vertexArray = convert<IDLNullable<IDLInterface<WebGLVertexArrayObject>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "vertexArray", "WebGL2RenderingContext", "isVertexArray", "WebGLVertexArrayObject"); });
12267 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12268 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
12269 InspectorCanvasCallTracer::recordAction(impl, "isVertexArray"_s, { InspectorCanvasCallTracer::processArgument(impl, vertexArray) });
12270 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLBoolean>(*lexicalGlobalObject, throwScope, impl.isVertexArray(WTFMove(vertexArray)))));
12271}
12272
12273JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_isVertexArray, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
12274{
12275 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_isVertexArrayBody>(*lexicalGlobalObject, *callFrame, "isVertexArray");
12276}
12277
12278static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_bindVertexArrayBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
12279{
12280 auto& vm = JSC::getVM(lexicalGlobalObject);
12281 auto throwScope = DECLARE_THROW_SCOPE(vm);
12282 UNUSED_PARAM(throwScope);
12283 UNUSED_PARAM(callFrame);
12284 auto& impl = castedThis->wrapped();
12285 if (UNLIKELY(callFrame->argumentCount() < 1))
12286 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
12287 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
12288 auto vertexArray = convert<IDLNullable<IDLInterface<WebGLVertexArrayObject>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "vertexArray", "WebGL2RenderingContext", "bindVertexArray", "WebGLVertexArrayObject"); });
12289 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12290 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
12291 InspectorCanvasCallTracer::recordAction(impl, "bindVertexArray"_s, { InspectorCanvasCallTracer::processArgument(impl, vertexArray) });
12292 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.bindVertexArray(WTFMove(vertexArray)); })));
12293}
12294
12295JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_bindVertexArray, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
12296{
12297 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_bindVertexArrayBody>(*lexicalGlobalObject, *callFrame, "bindVertexArray");
12298}
12299
12300static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_texImage2D1Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
12301{
12302 auto& vm = JSC::getVM(lexicalGlobalObject);
12303 auto throwScope = DECLARE_THROW_SCOPE(vm);
12304 UNUSED_PARAM(throwScope);
12305 UNUSED_PARAM(callFrame);
12306 auto& impl = castedThis->wrapped();
12307 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
12308 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
12309 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12310 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
12311 auto level = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
12312 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12313 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
12314 auto internalformat = convert<IDLLong>(*lexicalGlobalObject, argument2.value());
12315 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12316 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
12317 auto width = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
12318 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12319 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
12320 auto height = convert<IDLLong>(*lexicalGlobalObject, argument4.value());
12321 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12322 EnsureStillAliveScope argument5 = callFrame->uncheckedArgument(5);
12323 auto border = convert<IDLLong>(*lexicalGlobalObject, argument5.value());
12324 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12325 EnsureStillAliveScope argument6 = callFrame->uncheckedArgument(6);
12326 auto format = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument6.value());
12327 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12328 EnsureStillAliveScope argument7 = callFrame->uncheckedArgument(7);
12329 auto type = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument7.value());
12330 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12331 EnsureStillAliveScope argument8 = callFrame->uncheckedArgument(8);
12332 auto pboOffset = convert<IDLLongLong>(*lexicalGlobalObject, argument8.value());
12333 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12334 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
12335 InspectorCanvasCallTracer::recordAction(impl, "texImage2D"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, level), InspectorCanvasCallTracer::processArgument(impl, internalformat), InspectorCanvasCallTracer::processArgument(impl, width), InspectorCanvasCallTracer::processArgument(impl, height), InspectorCanvasCallTracer::processArgument(impl, border), InspectorCanvasCallTracer::processArgument(impl, format), InspectorCanvasCallTracer::processArgument(impl, type), InspectorCanvasCallTracer::processArgument(impl, pboOffset) });
12336 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.texImage2D(WTFMove(target), WTFMove(level), WTFMove(internalformat), WTFMove(width), WTFMove(height), WTFMove(border), WTFMove(format), WTFMove(type), WTFMove(pboOffset)); })));
12337}
12338
12339static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_texImage2D2Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
12340{
12341 auto& vm = JSC::getVM(lexicalGlobalObject);
12342 auto throwScope = DECLARE_THROW_SCOPE(vm);
12343 UNUSED_PARAM(throwScope);
12344 UNUSED_PARAM(callFrame);
12345 auto& impl = castedThis->wrapped();
12346 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
12347 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
12348 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12349 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
12350 auto level = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
12351 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12352 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
12353 auto internalformat = convert<IDLLong>(*lexicalGlobalObject, argument2.value());
12354 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12355 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
12356 auto width = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
12357 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12358 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
12359 auto height = convert<IDLLong>(*lexicalGlobalObject, argument4.value());
12360 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12361 EnsureStillAliveScope argument5 = callFrame->uncheckedArgument(5);
12362 auto border = convert<IDLLong>(*lexicalGlobalObject, argument5.value());
12363 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12364 EnsureStillAliveScope argument6 = callFrame->uncheckedArgument(6);
12365 auto format = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument6.value());
12366 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12367 EnsureStillAliveScope argument7 = callFrame->uncheckedArgument(7);
12368 auto type = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument7.value());
12369 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12370 EnsureStillAliveScope argument8 = callFrame->uncheckedArgument(8);
12371 auto source = convert<IDLUnion<IDLInterface<ImageBitmap>, IDLInterface<ImageData>, IDLInterface<HTMLImageElement>, IDLInterface<HTMLCanvasElement>, IDLInterface<HTMLVideoElement>>>(*lexicalGlobalObject, argument8.value());
12372 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12373 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
12374 InspectorCanvasCallTracer::recordAction(impl, "texImage2D"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, level), InspectorCanvasCallTracer::processArgument(impl, internalformat), InspectorCanvasCallTracer::processArgument(impl, width), InspectorCanvasCallTracer::processArgument(impl, height), InspectorCanvasCallTracer::processArgument(impl, border), InspectorCanvasCallTracer::processArgument(impl, format), InspectorCanvasCallTracer::processArgument(impl, type), InspectorCanvasCallTracer::processArgument(impl, source) });
12375 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.texImage2D(WTFMove(target), WTFMove(level), WTFMove(internalformat), WTFMove(width), WTFMove(height), WTFMove(border), WTFMove(format), WTFMove(type), WTFMove(source)); })));
12376}
12377
12378static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_texImage2D3Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
12379{
12380 auto& vm = JSC::getVM(lexicalGlobalObject);
12381 auto throwScope = DECLARE_THROW_SCOPE(vm);
12382 UNUSED_PARAM(throwScope);
12383 UNUSED_PARAM(callFrame);
12384 auto& impl = castedThis->wrapped();
12385 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
12386 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
12387 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12388 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
12389 auto level = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
12390 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12391 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
12392 auto internalformat = convert<IDLLong>(*lexicalGlobalObject, argument2.value());
12393 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12394 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
12395 auto width = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
12396 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12397 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
12398 auto height = convert<IDLLong>(*lexicalGlobalObject, argument4.value());
12399 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12400 EnsureStillAliveScope argument5 = callFrame->uncheckedArgument(5);
12401 auto border = convert<IDLLong>(*lexicalGlobalObject, argument5.value());
12402 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12403 EnsureStillAliveScope argument6 = callFrame->uncheckedArgument(6);
12404 auto format = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument6.value());
12405 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12406 EnsureStillAliveScope argument7 = callFrame->uncheckedArgument(7);
12407 auto type = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument7.value());
12408 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12409 EnsureStillAliveScope argument8 = callFrame->uncheckedArgument(8);
12410 auto srcData = convert<IDLAllowSharedAdaptor<IDLArrayBufferView>>(*lexicalGlobalObject, argument8.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 8, "srcData", "WebGL2RenderingContext", "texImage2D", "ArrayBufferView"); });
12411 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12412 EnsureStillAliveScope argument9 = callFrame->uncheckedArgument(9);
12413 auto srcOffset = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument9.value());
12414 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12415 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
12416 InspectorCanvasCallTracer::recordAction(impl, "texImage2D"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, level), InspectorCanvasCallTracer::processArgument(impl, internalformat), InspectorCanvasCallTracer::processArgument(impl, width), InspectorCanvasCallTracer::processArgument(impl, height), InspectorCanvasCallTracer::processArgument(impl, border), InspectorCanvasCallTracer::processArgument(impl, format), InspectorCanvasCallTracer::processArgument(impl, type), InspectorCanvasCallTracer::processArgument(impl, srcData), InspectorCanvasCallTracer::processArgument(impl, srcOffset) });
12417 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.texImage2D(WTFMove(target), WTFMove(level), WTFMove(internalformat), WTFMove(width), WTFMove(height), WTFMove(border), WTFMove(format), WTFMove(type), srcData.releaseNonNull(), WTFMove(srcOffset)); })));
12418}
12419
12420static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_texSubImage2D1Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
12421{
12422 auto& vm = JSC::getVM(lexicalGlobalObject);
12423 auto throwScope = DECLARE_THROW_SCOPE(vm);
12424 UNUSED_PARAM(throwScope);
12425 UNUSED_PARAM(callFrame);
12426 auto& impl = castedThis->wrapped();
12427 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
12428 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
12429 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12430 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
12431 auto level = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
12432 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12433 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
12434 auto xoffset = convert<IDLLong>(*lexicalGlobalObject, argument2.value());
12435 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12436 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
12437 auto yoffset = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
12438 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12439 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
12440 auto width = convert<IDLLong>(*lexicalGlobalObject, argument4.value());
12441 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12442 EnsureStillAliveScope argument5 = callFrame->uncheckedArgument(5);
12443 auto height = convert<IDLLong>(*lexicalGlobalObject, argument5.value());
12444 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12445 EnsureStillAliveScope argument6 = callFrame->uncheckedArgument(6);
12446 auto format = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument6.value());
12447 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12448 EnsureStillAliveScope argument7 = callFrame->uncheckedArgument(7);
12449 auto type = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument7.value());
12450 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12451 EnsureStillAliveScope argument8 = callFrame->uncheckedArgument(8);
12452 auto pboOffset = convert<IDLLongLong>(*lexicalGlobalObject, argument8.value());
12453 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12454 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
12455 InspectorCanvasCallTracer::recordAction(impl, "texSubImage2D"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, level), InspectorCanvasCallTracer::processArgument(impl, xoffset), InspectorCanvasCallTracer::processArgument(impl, yoffset), InspectorCanvasCallTracer::processArgument(impl, width), InspectorCanvasCallTracer::processArgument(impl, height), InspectorCanvasCallTracer::processArgument(impl, format), InspectorCanvasCallTracer::processArgument(impl, type), InspectorCanvasCallTracer::processArgument(impl, pboOffset) });
12456 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.texSubImage2D(WTFMove(target), WTFMove(level), WTFMove(xoffset), WTFMove(yoffset), WTFMove(width), WTFMove(height), WTFMove(format), WTFMove(type), WTFMove(pboOffset)); })));
12457}
12458
12459static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_texSubImage2D2Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
12460{
12461 auto& vm = JSC::getVM(lexicalGlobalObject);
12462 auto throwScope = DECLARE_THROW_SCOPE(vm);
12463 UNUSED_PARAM(throwScope);
12464 UNUSED_PARAM(callFrame);
12465 auto& impl = castedThis->wrapped();
12466 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
12467 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
12468 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12469 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
12470 auto level = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
12471 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12472 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
12473 auto xoffset = convert<IDLLong>(*lexicalGlobalObject, argument2.value());
12474 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12475 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
12476 auto yoffset = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
12477 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12478 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
12479 auto width = convert<IDLLong>(*lexicalGlobalObject, argument4.value());
12480 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12481 EnsureStillAliveScope argument5 = callFrame->uncheckedArgument(5);
12482 auto height = convert<IDLLong>(*lexicalGlobalObject, argument5.value());
12483 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12484 EnsureStillAliveScope argument6 = callFrame->uncheckedArgument(6);
12485 auto format = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument6.value());
12486 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12487 EnsureStillAliveScope argument7 = callFrame->uncheckedArgument(7);
12488 auto type = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument7.value());
12489 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12490 EnsureStillAliveScope argument8 = callFrame->uncheckedArgument(8);
12491 auto source = convert<IDLUnion<IDLInterface<ImageBitmap>, IDLInterface<ImageData>, IDLInterface<HTMLImageElement>, IDLInterface<HTMLCanvasElement>, IDLInterface<HTMLVideoElement>>>(*lexicalGlobalObject, argument8.value());
12492 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12493 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
12494 InspectorCanvasCallTracer::recordAction(impl, "texSubImage2D"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, level), InspectorCanvasCallTracer::processArgument(impl, xoffset), InspectorCanvasCallTracer::processArgument(impl, yoffset), InspectorCanvasCallTracer::processArgument(impl, width), InspectorCanvasCallTracer::processArgument(impl, height), InspectorCanvasCallTracer::processArgument(impl, format), InspectorCanvasCallTracer::processArgument(impl, type), InspectorCanvasCallTracer::processArgument(impl, source) });
12495 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.texSubImage2D(WTFMove(target), WTFMove(level), WTFMove(xoffset), WTFMove(yoffset), WTFMove(width), WTFMove(height), WTFMove(format), WTFMove(type), WTFMove(source)); })));
12496}
12497
12498static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_texSubImage2D3Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
12499{
12500 auto& vm = JSC::getVM(lexicalGlobalObject);
12501 auto throwScope = DECLARE_THROW_SCOPE(vm);
12502 UNUSED_PARAM(throwScope);
12503 UNUSED_PARAM(callFrame);
12504 auto& impl = castedThis->wrapped();
12505 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
12506 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
12507 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12508 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
12509 auto level = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
12510 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12511 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
12512 auto xoffset = convert<IDLLong>(*lexicalGlobalObject, argument2.value());
12513 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12514 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
12515 auto yoffset = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
12516 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12517 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
12518 auto width = convert<IDLLong>(*lexicalGlobalObject, argument4.value());
12519 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12520 EnsureStillAliveScope argument5 = callFrame->uncheckedArgument(5);
12521 auto height = convert<IDLLong>(*lexicalGlobalObject, argument5.value());
12522 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12523 EnsureStillAliveScope argument6 = callFrame->uncheckedArgument(6);
12524 auto format = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument6.value());
12525 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12526 EnsureStillAliveScope argument7 = callFrame->uncheckedArgument(7);
12527 auto type = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument7.value());
12528 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12529 EnsureStillAliveScope argument8 = callFrame->uncheckedArgument(8);
12530 auto srcData = convert<IDLAllowSharedAdaptor<IDLArrayBufferView>>(*lexicalGlobalObject, argument8.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 8, "srcData", "WebGL2RenderingContext", "texSubImage2D", "ArrayBufferView"); });
12531 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12532 EnsureStillAliveScope argument9 = callFrame->uncheckedArgument(9);
12533 auto srcOffset = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument9.value());
12534 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12535 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
12536 InspectorCanvasCallTracer::recordAction(impl, "texSubImage2D"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, level), InspectorCanvasCallTracer::processArgument(impl, xoffset), InspectorCanvasCallTracer::processArgument(impl, yoffset), InspectorCanvasCallTracer::processArgument(impl, width), InspectorCanvasCallTracer::processArgument(impl, height), InspectorCanvasCallTracer::processArgument(impl, format), InspectorCanvasCallTracer::processArgument(impl, type), InspectorCanvasCallTracer::processArgument(impl, srcData), InspectorCanvasCallTracer::processArgument(impl, srcOffset) });
12537 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.texSubImage2D(WTFMove(target), WTFMove(level), WTFMove(xoffset), WTFMove(yoffset), WTFMove(width), WTFMove(height), WTFMove(format), WTFMove(type), srcData.releaseNonNull(), WTFMove(srcOffset)); })));
12538}
12539
12540static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_compressedTexImage2D1Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
12541{
12542 auto& vm = JSC::getVM(lexicalGlobalObject);
12543 auto throwScope = DECLARE_THROW_SCOPE(vm);
12544 UNUSED_PARAM(throwScope);
12545 UNUSED_PARAM(callFrame);
12546 auto& impl = castedThis->wrapped();
12547 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
12548 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
12549 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12550 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
12551 auto level = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
12552 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12553 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
12554 auto internalformat = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
12555 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12556 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
12557 auto width = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
12558 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12559 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
12560 auto height = convert<IDLLong>(*lexicalGlobalObject, argument4.value());
12561 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12562 EnsureStillAliveScope argument5 = callFrame->uncheckedArgument(5);
12563 auto border = convert<IDLLong>(*lexicalGlobalObject, argument5.value());
12564 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12565 EnsureStillAliveScope argument6 = callFrame->uncheckedArgument(6);
12566 auto imageSize = convert<IDLLong>(*lexicalGlobalObject, argument6.value());
12567 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12568 EnsureStillAliveScope argument7 = callFrame->uncheckedArgument(7);
12569 auto offset = convert<IDLLongLong>(*lexicalGlobalObject, argument7.value());
12570 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12571 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
12572 InspectorCanvasCallTracer::recordAction(impl, "compressedTexImage2D"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, level), InspectorCanvasCallTracer::processArgument(impl, internalformat), InspectorCanvasCallTracer::processArgument(impl, width), InspectorCanvasCallTracer::processArgument(impl, height), InspectorCanvasCallTracer::processArgument(impl, border), InspectorCanvasCallTracer::processArgument(impl, imageSize), InspectorCanvasCallTracer::processArgument(impl, offset) });
12573 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.compressedTexImage2D(WTFMove(target), WTFMove(level), WTFMove(internalformat), WTFMove(width), WTFMove(height), WTFMove(border), WTFMove(imageSize), WTFMove(offset)); })));
12574}
12575
12576static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_compressedTexImage2D2Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
12577{
12578 auto& vm = JSC::getVM(lexicalGlobalObject);
12579 auto throwScope = DECLARE_THROW_SCOPE(vm);
12580 UNUSED_PARAM(throwScope);
12581 UNUSED_PARAM(callFrame);
12582 auto& impl = castedThis->wrapped();
12583 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
12584 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
12585 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12586 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
12587 auto level = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
12588 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12589 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
12590 auto internalformat = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
12591 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12592 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
12593 auto width = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
12594 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12595 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
12596 auto height = convert<IDLLong>(*lexicalGlobalObject, argument4.value());
12597 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12598 EnsureStillAliveScope argument5 = callFrame->uncheckedArgument(5);
12599 auto border = convert<IDLLong>(*lexicalGlobalObject, argument5.value());
12600 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12601 EnsureStillAliveScope argument6 = callFrame->uncheckedArgument(6);
12602 auto srcData = convert<IDLAllowSharedAdaptor<IDLArrayBufferView>>(*lexicalGlobalObject, argument6.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 6, "srcData", "WebGL2RenderingContext", "compressedTexImage2D", "ArrayBufferView"); });
12603 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12604 EnsureStillAliveScope argument7 = callFrame->uncheckedArgument(7);
12605 auto srcOffset = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument7.value());
12606 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12607 EnsureStillAliveScope argument8 = callFrame->argument(8);
12608 auto srcLengthOverride = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument8.value());
12609 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12610 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
12611 InspectorCanvasCallTracer::recordAction(impl, "compressedTexImage2D"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, level), InspectorCanvasCallTracer::processArgument(impl, internalformat), InspectorCanvasCallTracer::processArgument(impl, width), InspectorCanvasCallTracer::processArgument(impl, height), InspectorCanvasCallTracer::processArgument(impl, border), InspectorCanvasCallTracer::processArgument(impl, srcData), InspectorCanvasCallTracer::processArgument(impl, srcOffset), InspectorCanvasCallTracer::processArgument(impl, srcLengthOverride) });
12612 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.compressedTexImage2D(WTFMove(target), WTFMove(level), WTFMove(internalformat), WTFMove(width), WTFMove(height), WTFMove(border), srcData.releaseNonNull(), WTFMove(srcOffset), WTFMove(srcLengthOverride)); })));
12613}
12614
12615static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_compressedTexSubImage2D1Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
12616{
12617 auto& vm = JSC::getVM(lexicalGlobalObject);
12618 auto throwScope = DECLARE_THROW_SCOPE(vm);
12619 UNUSED_PARAM(throwScope);
12620 UNUSED_PARAM(callFrame);
12621 auto& impl = castedThis->wrapped();
12622 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
12623 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
12624 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12625 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
12626 auto level = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
12627 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12628 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
12629 auto xoffset = convert<IDLLong>(*lexicalGlobalObject, argument2.value());
12630 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12631 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
12632 auto yoffset = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
12633 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12634 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
12635 auto width = convert<IDLLong>(*lexicalGlobalObject, argument4.value());
12636 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12637 EnsureStillAliveScope argument5 = callFrame->uncheckedArgument(5);
12638 auto height = convert<IDLLong>(*lexicalGlobalObject, argument5.value());
12639 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12640 EnsureStillAliveScope argument6 = callFrame->uncheckedArgument(6);
12641 auto format = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument6.value());
12642 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12643 EnsureStillAliveScope argument7 = callFrame->uncheckedArgument(7);
12644 auto imageSize = convert<IDLLong>(*lexicalGlobalObject, argument7.value());
12645 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12646 EnsureStillAliveScope argument8 = callFrame->uncheckedArgument(8);
12647 auto offset = convert<IDLLongLong>(*lexicalGlobalObject, argument8.value());
12648 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12649 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
12650 InspectorCanvasCallTracer::recordAction(impl, "compressedTexSubImage2D"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, level), InspectorCanvasCallTracer::processArgument(impl, xoffset), InspectorCanvasCallTracer::processArgument(impl, yoffset), InspectorCanvasCallTracer::processArgument(impl, width), InspectorCanvasCallTracer::processArgument(impl, height), InspectorCanvasCallTracer::processArgument(impl, format), InspectorCanvasCallTracer::processArgument(impl, imageSize), InspectorCanvasCallTracer::processArgument(impl, offset) });
12651 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.compressedTexSubImage2D(WTFMove(target), WTFMove(level), WTFMove(xoffset), WTFMove(yoffset), WTFMove(width), WTFMove(height), WTFMove(format), WTFMove(imageSize), WTFMove(offset)); })));
12652}
12653
12654static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_compressedTexSubImage2D2Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
12655{
12656 auto& vm = JSC::getVM(lexicalGlobalObject);
12657 auto throwScope = DECLARE_THROW_SCOPE(vm);
12658 UNUSED_PARAM(throwScope);
12659 UNUSED_PARAM(callFrame);
12660 auto& impl = castedThis->wrapped();
12661 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
12662 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
12663 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12664 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
12665 auto level = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
12666 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12667 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
12668 auto xoffset = convert<IDLLong>(*lexicalGlobalObject, argument2.value());
12669 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12670 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
12671 auto yoffset = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
12672 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12673 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
12674 auto width = convert<IDLLong>(*lexicalGlobalObject, argument4.value());
12675 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12676 EnsureStillAliveScope argument5 = callFrame->uncheckedArgument(5);
12677 auto height = convert<IDLLong>(*lexicalGlobalObject, argument5.value());
12678 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12679 EnsureStillAliveScope argument6 = callFrame->uncheckedArgument(6);
12680 auto format = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument6.value());
12681 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12682 EnsureStillAliveScope argument7 = callFrame->uncheckedArgument(7);
12683 auto srcData = convert<IDLAllowSharedAdaptor<IDLArrayBufferView>>(*lexicalGlobalObject, argument7.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 7, "srcData", "WebGL2RenderingContext", "compressedTexSubImage2D", "ArrayBufferView"); });
12684 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12685 EnsureStillAliveScope argument8 = callFrame->uncheckedArgument(8);
12686 auto srcOffset = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument8.value());
12687 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12688 EnsureStillAliveScope argument9 = callFrame->argument(9);
12689 auto srcLengthOverride = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument9.value());
12690 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12691 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
12692 InspectorCanvasCallTracer::recordAction(impl, "compressedTexSubImage2D"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, level), InspectorCanvasCallTracer::processArgument(impl, xoffset), InspectorCanvasCallTracer::processArgument(impl, yoffset), InspectorCanvasCallTracer::processArgument(impl, width), InspectorCanvasCallTracer::processArgument(impl, height), InspectorCanvasCallTracer::processArgument(impl, format), InspectorCanvasCallTracer::processArgument(impl, srcData), InspectorCanvasCallTracer::processArgument(impl, srcOffset), InspectorCanvasCallTracer::processArgument(impl, srcLengthOverride) });
12693 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.compressedTexSubImage2D(WTFMove(target), WTFMove(level), WTFMove(xoffset), WTFMove(yoffset), WTFMove(width), WTFMove(height), WTFMove(format), srcData.releaseNonNull(), WTFMove(srcOffset), WTFMove(srcLengthOverride)); })));
12694}
12695
12696static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniform1fv1Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
12697{
12698 auto& vm = JSC::getVM(lexicalGlobalObject);
12699 auto throwScope = DECLARE_THROW_SCOPE(vm);
12700 UNUSED_PARAM(throwScope);
12701 UNUSED_PARAM(callFrame);
12702 auto& impl = castedThis->wrapped();
12703 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
12704 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniform1fv", "WebGLUniformLocation"); });
12705 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12706 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
12707 auto data = convert<IDLUnion<IDLAllowSharedAdaptor<IDLFloat32Array>, IDLSequence<IDLUnrestrictedFloat>>>(*lexicalGlobalObject, argument1.value());
12708 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12709 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
12710 auto srcOffset = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
12711 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12712 EnsureStillAliveScope argument3 = callFrame->argument(3);
12713 auto srcLength = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument3.value());
12714 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12715 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
12716 InspectorCanvasCallTracer::recordAction(impl, "uniform1fv"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, data), InspectorCanvasCallTracer::processArgument(impl, srcOffset), InspectorCanvasCallTracer::processArgument(impl, srcLength) });
12717 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniform1fv(WTFMove(location), WTFMove(data), WTFMove(srcOffset), WTFMove(srcLength)); })));
12718}
12719
12720static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniform2fv1Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
12721{
12722 auto& vm = JSC::getVM(lexicalGlobalObject);
12723 auto throwScope = DECLARE_THROW_SCOPE(vm);
12724 UNUSED_PARAM(throwScope);
12725 UNUSED_PARAM(callFrame);
12726 auto& impl = castedThis->wrapped();
12727 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
12728 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniform2fv", "WebGLUniformLocation"); });
12729 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12730 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
12731 auto data = convert<IDLUnion<IDLAllowSharedAdaptor<IDLFloat32Array>, IDLSequence<IDLUnrestrictedFloat>>>(*lexicalGlobalObject, argument1.value());
12732 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12733 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
12734 auto srcOffset = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
12735 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12736 EnsureStillAliveScope argument3 = callFrame->argument(3);
12737 auto srcLength = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument3.value());
12738 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12739 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
12740 InspectorCanvasCallTracer::recordAction(impl, "uniform2fv"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, data), InspectorCanvasCallTracer::processArgument(impl, srcOffset), InspectorCanvasCallTracer::processArgument(impl, srcLength) });
12741 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniform2fv(WTFMove(location), WTFMove(data), WTFMove(srcOffset), WTFMove(srcLength)); })));
12742}
12743
12744static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniform3fv1Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
12745{
12746 auto& vm = JSC::getVM(lexicalGlobalObject);
12747 auto throwScope = DECLARE_THROW_SCOPE(vm);
12748 UNUSED_PARAM(throwScope);
12749 UNUSED_PARAM(callFrame);
12750 auto& impl = castedThis->wrapped();
12751 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
12752 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniform3fv", "WebGLUniformLocation"); });
12753 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12754 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
12755 auto data = convert<IDLUnion<IDLAllowSharedAdaptor<IDLFloat32Array>, IDLSequence<IDLUnrestrictedFloat>>>(*lexicalGlobalObject, argument1.value());
12756 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12757 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
12758 auto srcOffset = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
12759 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12760 EnsureStillAliveScope argument3 = callFrame->argument(3);
12761 auto srcLength = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument3.value());
12762 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12763 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
12764 InspectorCanvasCallTracer::recordAction(impl, "uniform3fv"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, data), InspectorCanvasCallTracer::processArgument(impl, srcOffset), InspectorCanvasCallTracer::processArgument(impl, srcLength) });
12765 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniform3fv(WTFMove(location), WTFMove(data), WTFMove(srcOffset), WTFMove(srcLength)); })));
12766}
12767
12768static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniform4fv1Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
12769{
12770 auto& vm = JSC::getVM(lexicalGlobalObject);
12771 auto throwScope = DECLARE_THROW_SCOPE(vm);
12772 UNUSED_PARAM(throwScope);
12773 UNUSED_PARAM(callFrame);
12774 auto& impl = castedThis->wrapped();
12775 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
12776 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniform4fv", "WebGLUniformLocation"); });
12777 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12778 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
12779 auto data = convert<IDLUnion<IDLAllowSharedAdaptor<IDLFloat32Array>, IDLSequence<IDLUnrestrictedFloat>>>(*lexicalGlobalObject, argument1.value());
12780 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12781 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
12782 auto srcOffset = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
12783 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12784 EnsureStillAliveScope argument3 = callFrame->argument(3);
12785 auto srcLength = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument3.value());
12786 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12787 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
12788 InspectorCanvasCallTracer::recordAction(impl, "uniform4fv"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, data), InspectorCanvasCallTracer::processArgument(impl, srcOffset), InspectorCanvasCallTracer::processArgument(impl, srcLength) });
12789 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniform4fv(WTFMove(location), WTFMove(data), WTFMove(srcOffset), WTFMove(srcLength)); })));
12790}
12791
12792static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniform1iv1Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
12793{
12794 auto& vm = JSC::getVM(lexicalGlobalObject);
12795 auto throwScope = DECLARE_THROW_SCOPE(vm);
12796 UNUSED_PARAM(throwScope);
12797 UNUSED_PARAM(callFrame);
12798 auto& impl = castedThis->wrapped();
12799 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
12800 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniform1iv", "WebGLUniformLocation"); });
12801 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12802 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
12803 auto data = convert<IDLUnion<IDLAllowSharedAdaptor<IDLInt32Array>, IDLSequence<IDLLong>>>(*lexicalGlobalObject, argument1.value());
12804 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12805 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
12806 auto srcOffset = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
12807 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12808 EnsureStillAliveScope argument3 = callFrame->argument(3);
12809 auto srcLength = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument3.value());
12810 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12811 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
12812 InspectorCanvasCallTracer::recordAction(impl, "uniform1iv"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, data), InspectorCanvasCallTracer::processArgument(impl, srcOffset), InspectorCanvasCallTracer::processArgument(impl, srcLength) });
12813 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniform1iv(WTFMove(location), WTFMove(data), WTFMove(srcOffset), WTFMove(srcLength)); })));
12814}
12815
12816static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniform2iv1Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
12817{
12818 auto& vm = JSC::getVM(lexicalGlobalObject);
12819 auto throwScope = DECLARE_THROW_SCOPE(vm);
12820 UNUSED_PARAM(throwScope);
12821 UNUSED_PARAM(callFrame);
12822 auto& impl = castedThis->wrapped();
12823 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
12824 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniform2iv", "WebGLUniformLocation"); });
12825 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12826 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
12827 auto data = convert<IDLUnion<IDLAllowSharedAdaptor<IDLInt32Array>, IDLSequence<IDLLong>>>(*lexicalGlobalObject, argument1.value());
12828 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12829 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
12830 auto srcOffset = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
12831 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12832 EnsureStillAliveScope argument3 = callFrame->argument(3);
12833 auto srcLength = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument3.value());
12834 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12835 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
12836 InspectorCanvasCallTracer::recordAction(impl, "uniform2iv"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, data), InspectorCanvasCallTracer::processArgument(impl, srcOffset), InspectorCanvasCallTracer::processArgument(impl, srcLength) });
12837 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniform2iv(WTFMove(location), WTFMove(data), WTFMove(srcOffset), WTFMove(srcLength)); })));
12838}
12839
12840static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniform3iv1Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
12841{
12842 auto& vm = JSC::getVM(lexicalGlobalObject);
12843 auto throwScope = DECLARE_THROW_SCOPE(vm);
12844 UNUSED_PARAM(throwScope);
12845 UNUSED_PARAM(callFrame);
12846 auto& impl = castedThis->wrapped();
12847 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
12848 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniform3iv", "WebGLUniformLocation"); });
12849 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12850 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
12851 auto data = convert<IDLUnion<IDLAllowSharedAdaptor<IDLInt32Array>, IDLSequence<IDLLong>>>(*lexicalGlobalObject, argument1.value());
12852 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12853 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
12854 auto srcOffset = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
12855 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12856 EnsureStillAliveScope argument3 = callFrame->argument(3);
12857 auto srcLength = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument3.value());
12858 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12859 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
12860 InspectorCanvasCallTracer::recordAction(impl, "uniform3iv"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, data), InspectorCanvasCallTracer::processArgument(impl, srcOffset), InspectorCanvasCallTracer::processArgument(impl, srcLength) });
12861 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniform3iv(WTFMove(location), WTFMove(data), WTFMove(srcOffset), WTFMove(srcLength)); })));
12862}
12863
12864static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniform4iv1Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
12865{
12866 auto& vm = JSC::getVM(lexicalGlobalObject);
12867 auto throwScope = DECLARE_THROW_SCOPE(vm);
12868 UNUSED_PARAM(throwScope);
12869 UNUSED_PARAM(callFrame);
12870 auto& impl = castedThis->wrapped();
12871 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
12872 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniform4iv", "WebGLUniformLocation"); });
12873 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12874 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
12875 auto data = convert<IDLUnion<IDLAllowSharedAdaptor<IDLInt32Array>, IDLSequence<IDLLong>>>(*lexicalGlobalObject, argument1.value());
12876 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12877 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
12878 auto srcOffset = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
12879 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12880 EnsureStillAliveScope argument3 = callFrame->argument(3);
12881 auto srcLength = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument3.value());
12882 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12883 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
12884 InspectorCanvasCallTracer::recordAction(impl, "uniform4iv"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, data), InspectorCanvasCallTracer::processArgument(impl, srcOffset), InspectorCanvasCallTracer::processArgument(impl, srcLength) });
12885 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniform4iv(WTFMove(location), WTFMove(data), WTFMove(srcOffset), WTFMove(srcLength)); })));
12886}
12887
12888static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniformMatrix2fv1Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
12889{
12890 auto& vm = JSC::getVM(lexicalGlobalObject);
12891 auto throwScope = DECLARE_THROW_SCOPE(vm);
12892 UNUSED_PARAM(throwScope);
12893 UNUSED_PARAM(callFrame);
12894 auto& impl = castedThis->wrapped();
12895 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
12896 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniformMatrix2fv", "WebGLUniformLocation"); });
12897 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12898 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
12899 auto transpose = convert<IDLBoolean>(*lexicalGlobalObject, argument1.value());
12900 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12901 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
12902 auto data = convert<IDLUnion<IDLAllowSharedAdaptor<IDLFloat32Array>, IDLSequence<IDLUnrestrictedFloat>>>(*lexicalGlobalObject, argument2.value());
12903 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12904 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
12905 auto srcOffset = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument3.value());
12906 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12907 EnsureStillAliveScope argument4 = callFrame->argument(4);
12908 auto srcLength = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument4.value());
12909 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12910 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
12911 InspectorCanvasCallTracer::recordAction(impl, "uniformMatrix2fv"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, transpose), InspectorCanvasCallTracer::processArgument(impl, data), InspectorCanvasCallTracer::processArgument(impl, srcOffset), InspectorCanvasCallTracer::processArgument(impl, srcLength) });
12912 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniformMatrix2fv(WTFMove(location), WTFMove(transpose), WTFMove(data), WTFMove(srcOffset), WTFMove(srcLength)); })));
12913}
12914
12915static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniformMatrix3fv1Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
12916{
12917 auto& vm = JSC::getVM(lexicalGlobalObject);
12918 auto throwScope = DECLARE_THROW_SCOPE(vm);
12919 UNUSED_PARAM(throwScope);
12920 UNUSED_PARAM(callFrame);
12921 auto& impl = castedThis->wrapped();
12922 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
12923 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniformMatrix3fv", "WebGLUniformLocation"); });
12924 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12925 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
12926 auto transpose = convert<IDLBoolean>(*lexicalGlobalObject, argument1.value());
12927 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12928 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
12929 auto data = convert<IDLUnion<IDLAllowSharedAdaptor<IDLFloat32Array>, IDLSequence<IDLUnrestrictedFloat>>>(*lexicalGlobalObject, argument2.value());
12930 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12931 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
12932 auto srcOffset = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument3.value());
12933 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12934 EnsureStillAliveScope argument4 = callFrame->argument(4);
12935 auto srcLength = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument4.value());
12936 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12937 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
12938 InspectorCanvasCallTracer::recordAction(impl, "uniformMatrix3fv"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, transpose), InspectorCanvasCallTracer::processArgument(impl, data), InspectorCanvasCallTracer::processArgument(impl, srcOffset), InspectorCanvasCallTracer::processArgument(impl, srcLength) });
12939 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniformMatrix3fv(WTFMove(location), WTFMove(transpose), WTFMove(data), WTFMove(srcOffset), WTFMove(srcLength)); })));
12940}
12941
12942static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniformMatrix4fv1Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
12943{
12944 auto& vm = JSC::getVM(lexicalGlobalObject);
12945 auto throwScope = DECLARE_THROW_SCOPE(vm);
12946 UNUSED_PARAM(throwScope);
12947 UNUSED_PARAM(callFrame);
12948 auto& impl = castedThis->wrapped();
12949 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
12950 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniformMatrix4fv", "WebGLUniformLocation"); });
12951 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12952 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
12953 auto transpose = convert<IDLBoolean>(*lexicalGlobalObject, argument1.value());
12954 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12955 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
12956 auto data = convert<IDLUnion<IDLAllowSharedAdaptor<IDLFloat32Array>, IDLSequence<IDLUnrestrictedFloat>>>(*lexicalGlobalObject, argument2.value());
12957 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12958 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
12959 auto srcOffset = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument3.value());
12960 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12961 EnsureStillAliveScope argument4 = callFrame->argument(4);
12962 auto srcLength = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument4.value());
12963 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12964 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
12965 InspectorCanvasCallTracer::recordAction(impl, "uniformMatrix4fv"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, transpose), InspectorCanvasCallTracer::processArgument(impl, data), InspectorCanvasCallTracer::processArgument(impl, srcOffset), InspectorCanvasCallTracer::processArgument(impl, srcLength) });
12966 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniformMatrix4fv(WTFMove(location), WTFMove(transpose), WTFMove(data), WTFMove(srcOffset), WTFMove(srcLength)); })));
12967}
12968
12969static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_readPixels1Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
12970{
12971 auto& vm = JSC::getVM(lexicalGlobalObject);
12972 auto throwScope = DECLARE_THROW_SCOPE(vm);
12973 UNUSED_PARAM(throwScope);
12974 UNUSED_PARAM(callFrame);
12975 auto& impl = castedThis->wrapped();
12976 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
12977 auto x = convert<IDLLong>(*lexicalGlobalObject, argument0.value());
12978 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12979 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
12980 auto y = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
12981 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12982 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
12983 auto width = convert<IDLLong>(*lexicalGlobalObject, argument2.value());
12984 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12985 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
12986 auto height = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
12987 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12988 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
12989 auto format = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument4.value());
12990 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12991 EnsureStillAliveScope argument5 = callFrame->uncheckedArgument(5);
12992 auto type = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument5.value());
12993 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12994 EnsureStillAliveScope argument6 = callFrame->uncheckedArgument(6);
12995 auto offset = convert<IDLLongLong>(*lexicalGlobalObject, argument6.value());
12996 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
12997 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
12998 InspectorCanvasCallTracer::recordAction(impl, "readPixels"_s, { InspectorCanvasCallTracer::processArgument(impl, x), InspectorCanvasCallTracer::processArgument(impl, y), InspectorCanvasCallTracer::processArgument(impl, width), InspectorCanvasCallTracer::processArgument(impl, height), InspectorCanvasCallTracer::processArgument(impl, format), InspectorCanvasCallTracer::processArgument(impl, type), InspectorCanvasCallTracer::processArgument(impl, offset) });
12999 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.readPixels(WTFMove(x), WTFMove(y), WTFMove(width), WTFMove(height), WTFMove(format), WTFMove(type), WTFMove(offset)); })));
13000}
13001
13002static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_readPixels2Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
13003{
13004 auto& vm = JSC::getVM(lexicalGlobalObject);
13005 auto throwScope = DECLARE_THROW_SCOPE(vm);
13006 UNUSED_PARAM(throwScope);
13007 UNUSED_PARAM(callFrame);
13008 auto& impl = castedThis->wrapped();
13009 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
13010 auto x = convert<IDLLong>(*lexicalGlobalObject, argument0.value());
13011 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13012 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
13013 auto y = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
13014 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13015 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
13016 auto width = convert<IDLLong>(*lexicalGlobalObject, argument2.value());
13017 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13018 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
13019 auto height = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
13020 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13021 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
13022 auto format = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument4.value());
13023 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13024 EnsureStillAliveScope argument5 = callFrame->uncheckedArgument(5);
13025 auto type = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument5.value());
13026 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13027 EnsureStillAliveScope argument6 = callFrame->uncheckedArgument(6);
13028 auto dstData = convert<IDLAllowSharedAdaptor<IDLArrayBufferView>>(*lexicalGlobalObject, argument6.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 6, "dstData", "WebGL2RenderingContext", "readPixels", "ArrayBufferView"); });
13029 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13030 EnsureStillAliveScope argument7 = callFrame->uncheckedArgument(7);
13031 auto dstOffset = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument7.value());
13032 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13033 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
13034 InspectorCanvasCallTracer::recordAction(impl, "readPixels"_s, { InspectorCanvasCallTracer::processArgument(impl, x), InspectorCanvasCallTracer::processArgument(impl, y), InspectorCanvasCallTracer::processArgument(impl, width), InspectorCanvasCallTracer::processArgument(impl, height), InspectorCanvasCallTracer::processArgument(impl, format), InspectorCanvasCallTracer::processArgument(impl, type), InspectorCanvasCallTracer::processArgument(impl, dstData), InspectorCanvasCallTracer::processArgument(impl, dstOffset) });
13035 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.readPixels(WTFMove(x), WTFMove(y), WTFMove(width), WTFMove(height), WTFMove(format), WTFMove(type), dstData.releaseNonNull(), WTFMove(dstOffset)); })));
13036}
13037
13038#if ENABLE(WEBGL)
13039static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_activeTextureBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
13040{
13041 auto& vm = JSC::getVM(lexicalGlobalObject);
13042 auto throwScope = DECLARE_THROW_SCOPE(vm);
13043 UNUSED_PARAM(throwScope);
13044 UNUSED_PARAM(callFrame);
13045 auto& impl = castedThis->wrapped();
13046 if (UNLIKELY(callFrame->argumentCount() < 1))
13047 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
13048 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
13049 auto texture = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
13050 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13051 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
13052 InspectorCanvasCallTracer::recordAction(impl, "activeTexture"_s, { InspectorCanvasCallTracer::processArgument(impl, texture) });
13053 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.activeTexture(WTFMove(texture)); })));
13054}
13055
13056JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_activeTexture, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
13057{
13058 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_activeTextureBody>(*lexicalGlobalObject, *callFrame, "activeTexture");
13059}
13060
13061#endif
13062
13063#if ENABLE(WEBGL)
13064static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_attachShaderBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
13065{
13066 auto& vm = JSC::getVM(lexicalGlobalObject);
13067 auto throwScope = DECLARE_THROW_SCOPE(vm);
13068 UNUSED_PARAM(throwScope);
13069 UNUSED_PARAM(callFrame);
13070 auto& impl = castedThis->wrapped();
13071 if (UNLIKELY(callFrame->argumentCount() < 2))
13072 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
13073 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
13074 auto program = convert<IDLInterface<WebGLProgram>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "program", "WebGL2RenderingContext", "attachShader", "WebGLProgram"); });
13075 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13076 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
13077 auto shader = convert<IDLInterface<WebGLShader>>(*lexicalGlobalObject, argument1.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 1, "shader", "WebGL2RenderingContext", "attachShader", "WebGLShader"); });
13078 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13079 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
13080 InspectorCanvasCallTracer::recordAction(impl, "attachShader"_s, { InspectorCanvasCallTracer::processArgument(impl, program), InspectorCanvasCallTracer::processArgument(impl, shader) });
13081 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.attachShader(*program, *shader); })));
13082}
13083
13084JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_attachShader, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
13085{
13086 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_attachShaderBody>(*lexicalGlobalObject, *callFrame, "attachShader");
13087}
13088
13089#endif
13090
13091#if ENABLE(WEBGL)
13092static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_bindAttribLocationBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
13093{
13094 auto& vm = JSC::getVM(lexicalGlobalObject);
13095 auto throwScope = DECLARE_THROW_SCOPE(vm);
13096 UNUSED_PARAM(throwScope);
13097 UNUSED_PARAM(callFrame);
13098 auto& impl = castedThis->wrapped();
13099 if (UNLIKELY(callFrame->argumentCount() < 3))
13100 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
13101 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
13102 auto program = convert<IDLInterface<WebGLProgram>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "program", "WebGL2RenderingContext", "bindAttribLocation", "WebGLProgram"); });
13103 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13104 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
13105 auto index = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
13106 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13107 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
13108 auto name = convert<IDLDOMString>(*lexicalGlobalObject, argument2.value());
13109 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13110 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
13111 InspectorCanvasCallTracer::recordAction(impl, "bindAttribLocation"_s, { InspectorCanvasCallTracer::processArgument(impl, program), InspectorCanvasCallTracer::processArgument(impl, index), InspectorCanvasCallTracer::processArgument(impl, name) });
13112 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.bindAttribLocation(*program, WTFMove(index), WTFMove(name)); })));
13113}
13114
13115JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_bindAttribLocation, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
13116{
13117 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_bindAttribLocationBody>(*lexicalGlobalObject, *callFrame, "bindAttribLocation");
13118}
13119
13120#endif
13121
13122#if ENABLE(WEBGL)
13123static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_bindBufferBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
13124{
13125 auto& vm = JSC::getVM(lexicalGlobalObject);
13126 auto throwScope = DECLARE_THROW_SCOPE(vm);
13127 UNUSED_PARAM(throwScope);
13128 UNUSED_PARAM(callFrame);
13129 auto& impl = castedThis->wrapped();
13130 if (UNLIKELY(callFrame->argumentCount() < 2))
13131 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
13132 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
13133 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
13134 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13135 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
13136 auto buffer = convert<IDLNullable<IDLInterface<WebGLBuffer>>>(*lexicalGlobalObject, argument1.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 1, "buffer", "WebGL2RenderingContext", "bindBuffer", "WebGLBuffer"); });
13137 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13138 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
13139 InspectorCanvasCallTracer::recordAction(impl, "bindBuffer"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, buffer) });
13140 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.bindBuffer(WTFMove(target), WTFMove(buffer)); })));
13141}
13142
13143JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_bindBuffer, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
13144{
13145 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_bindBufferBody>(*lexicalGlobalObject, *callFrame, "bindBuffer");
13146}
13147
13148#endif
13149
13150#if ENABLE(WEBGL)
13151static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_bindFramebufferBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
13152{
13153 auto& vm = JSC::getVM(lexicalGlobalObject);
13154 auto throwScope = DECLARE_THROW_SCOPE(vm);
13155 UNUSED_PARAM(throwScope);
13156 UNUSED_PARAM(callFrame);
13157 auto& impl = castedThis->wrapped();
13158 if (UNLIKELY(callFrame->argumentCount() < 2))
13159 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
13160 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
13161 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
13162 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13163 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
13164 auto framebuffer = convert<IDLNullable<IDLInterface<WebGLFramebuffer>>>(*lexicalGlobalObject, argument1.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 1, "framebuffer", "WebGL2RenderingContext", "bindFramebuffer", "WebGLFramebuffer"); });
13165 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13166 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
13167 InspectorCanvasCallTracer::recordAction(impl, "bindFramebuffer"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, framebuffer) });
13168 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.bindFramebuffer(WTFMove(target), WTFMove(framebuffer)); })));
13169}
13170
13171JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_bindFramebuffer, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
13172{
13173 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_bindFramebufferBody>(*lexicalGlobalObject, *callFrame, "bindFramebuffer");
13174}
13175
13176#endif
13177
13178#if ENABLE(WEBGL)
13179static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_bindRenderbufferBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
13180{
13181 auto& vm = JSC::getVM(lexicalGlobalObject);
13182 auto throwScope = DECLARE_THROW_SCOPE(vm);
13183 UNUSED_PARAM(throwScope);
13184 UNUSED_PARAM(callFrame);
13185 auto& impl = castedThis->wrapped();
13186 if (UNLIKELY(callFrame->argumentCount() < 2))
13187 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
13188 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
13189 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
13190 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13191 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
13192 auto renderbuffer = convert<IDLNullable<IDLInterface<WebGLRenderbuffer>>>(*lexicalGlobalObject, argument1.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 1, "renderbuffer", "WebGL2RenderingContext", "bindRenderbuffer", "WebGLRenderbuffer"); });
13193 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13194 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
13195 InspectorCanvasCallTracer::recordAction(impl, "bindRenderbuffer"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, renderbuffer) });
13196 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.bindRenderbuffer(WTFMove(target), WTFMove(renderbuffer)); })));
13197}
13198
13199JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_bindRenderbuffer, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
13200{
13201 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_bindRenderbufferBody>(*lexicalGlobalObject, *callFrame, "bindRenderbuffer");
13202}
13203
13204#endif
13205
13206#if ENABLE(WEBGL)
13207static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_bindTextureBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
13208{
13209 auto& vm = JSC::getVM(lexicalGlobalObject);
13210 auto throwScope = DECLARE_THROW_SCOPE(vm);
13211 UNUSED_PARAM(throwScope);
13212 UNUSED_PARAM(callFrame);
13213 auto& impl = castedThis->wrapped();
13214 if (UNLIKELY(callFrame->argumentCount() < 2))
13215 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
13216 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
13217 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
13218 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13219 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
13220 auto texture = convert<IDLNullable<IDLInterface<WebGLTexture>>>(*lexicalGlobalObject, argument1.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 1, "texture", "WebGL2RenderingContext", "bindTexture", "WebGLTexture"); });
13221 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13222 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
13223 InspectorCanvasCallTracer::recordAction(impl, "bindTexture"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, texture) });
13224 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.bindTexture(WTFMove(target), WTFMove(texture)); })));
13225}
13226
13227JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_bindTexture, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
13228{
13229 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_bindTextureBody>(*lexicalGlobalObject, *callFrame, "bindTexture");
13230}
13231
13232#endif
13233
13234#if ENABLE(WEBGL)
13235static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_blendColorBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
13236{
13237 auto& vm = JSC::getVM(lexicalGlobalObject);
13238 auto throwScope = DECLARE_THROW_SCOPE(vm);
13239 UNUSED_PARAM(throwScope);
13240 UNUSED_PARAM(callFrame);
13241 auto& impl = castedThis->wrapped();
13242 if (UNLIKELY(callFrame->argumentCount() < 4))
13243 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
13244 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
13245 auto red = convert<IDLUnrestrictedFloat>(*lexicalGlobalObject, argument0.value());
13246 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13247 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
13248 auto green = convert<IDLUnrestrictedFloat>(*lexicalGlobalObject, argument1.value());
13249 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13250 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
13251 auto blue = convert<IDLUnrestrictedFloat>(*lexicalGlobalObject, argument2.value());
13252 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13253 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
13254 auto alpha = convert<IDLUnrestrictedFloat>(*lexicalGlobalObject, argument3.value());
13255 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13256 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
13257 InspectorCanvasCallTracer::recordAction(impl, "blendColor"_s, { InspectorCanvasCallTracer::processArgument(impl, red), InspectorCanvasCallTracer::processArgument(impl, green), InspectorCanvasCallTracer::processArgument(impl, blue), InspectorCanvasCallTracer::processArgument(impl, alpha) });
13258 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.blendColor(WTFMove(red), WTFMove(green), WTFMove(blue), WTFMove(alpha)); })));
13259}
13260
13261JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_blendColor, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
13262{
13263 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_blendColorBody>(*lexicalGlobalObject, *callFrame, "blendColor");
13264}
13265
13266#endif
13267
13268#if ENABLE(WEBGL)
13269static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_blendEquationBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
13270{
13271 auto& vm = JSC::getVM(lexicalGlobalObject);
13272 auto throwScope = DECLARE_THROW_SCOPE(vm);
13273 UNUSED_PARAM(throwScope);
13274 UNUSED_PARAM(callFrame);
13275 auto& impl = castedThis->wrapped();
13276 if (UNLIKELY(callFrame->argumentCount() < 1))
13277 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
13278 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
13279 auto mode = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
13280 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13281 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
13282 InspectorCanvasCallTracer::recordAction(impl, "blendEquation"_s, { InspectorCanvasCallTracer::processArgument(impl, mode) });
13283 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.blendEquation(WTFMove(mode)); })));
13284}
13285
13286JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_blendEquation, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
13287{
13288 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_blendEquationBody>(*lexicalGlobalObject, *callFrame, "blendEquation");
13289}
13290
13291#endif
13292
13293#if ENABLE(WEBGL)
13294static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_blendEquationSeparateBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
13295{
13296 auto& vm = JSC::getVM(lexicalGlobalObject);
13297 auto throwScope = DECLARE_THROW_SCOPE(vm);
13298 UNUSED_PARAM(throwScope);
13299 UNUSED_PARAM(callFrame);
13300 auto& impl = castedThis->wrapped();
13301 if (UNLIKELY(callFrame->argumentCount() < 2))
13302 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
13303 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
13304 auto modeRGB = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
13305 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13306 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
13307 auto modeAlpha = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
13308 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13309 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
13310 InspectorCanvasCallTracer::recordAction(impl, "blendEquationSeparate"_s, { InspectorCanvasCallTracer::processArgument(impl, modeRGB), InspectorCanvasCallTracer::processArgument(impl, modeAlpha) });
13311 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.blendEquationSeparate(WTFMove(modeRGB), WTFMove(modeAlpha)); })));
13312}
13313
13314JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_blendEquationSeparate, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
13315{
13316 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_blendEquationSeparateBody>(*lexicalGlobalObject, *callFrame, "blendEquationSeparate");
13317}
13318
13319#endif
13320
13321#if ENABLE(WEBGL)
13322static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_blendFuncBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
13323{
13324 auto& vm = JSC::getVM(lexicalGlobalObject);
13325 auto throwScope = DECLARE_THROW_SCOPE(vm);
13326 UNUSED_PARAM(throwScope);
13327 UNUSED_PARAM(callFrame);
13328 auto& impl = castedThis->wrapped();
13329 if (UNLIKELY(callFrame->argumentCount() < 2))
13330 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
13331 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
13332 auto sfactor = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
13333 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13334 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
13335 auto dfactor = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
13336 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13337 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
13338 InspectorCanvasCallTracer::recordAction(impl, "blendFunc"_s, { InspectorCanvasCallTracer::processArgument(impl, sfactor), InspectorCanvasCallTracer::processArgument(impl, dfactor) });
13339 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.blendFunc(WTFMove(sfactor), WTFMove(dfactor)); })));
13340}
13341
13342JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_blendFunc, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
13343{
13344 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_blendFuncBody>(*lexicalGlobalObject, *callFrame, "blendFunc");
13345}
13346
13347#endif
13348
13349#if ENABLE(WEBGL)
13350static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_blendFuncSeparateBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
13351{
13352 auto& vm = JSC::getVM(lexicalGlobalObject);
13353 auto throwScope = DECLARE_THROW_SCOPE(vm);
13354 UNUSED_PARAM(throwScope);
13355 UNUSED_PARAM(callFrame);
13356 auto& impl = castedThis->wrapped();
13357 if (UNLIKELY(callFrame->argumentCount() < 4))
13358 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
13359 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
13360 auto srcRGB = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
13361 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13362 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
13363 auto dstRGB = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
13364 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13365 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
13366 auto srcAlpha = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
13367 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13368 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
13369 auto dstAlpha = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument3.value());
13370 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13371 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
13372 InspectorCanvasCallTracer::recordAction(impl, "blendFuncSeparate"_s, { InspectorCanvasCallTracer::processArgument(impl, srcRGB), InspectorCanvasCallTracer::processArgument(impl, dstRGB), InspectorCanvasCallTracer::processArgument(impl, srcAlpha), InspectorCanvasCallTracer::processArgument(impl, dstAlpha) });
13373 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.blendFuncSeparate(WTFMove(srcRGB), WTFMove(dstRGB), WTFMove(srcAlpha), WTFMove(dstAlpha)); })));
13374}
13375
13376JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_blendFuncSeparate, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
13377{
13378 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_blendFuncSeparateBody>(*lexicalGlobalObject, *callFrame, "blendFuncSeparate");
13379}
13380
13381#endif
13382
13383#if ENABLE(WEBGL)
13384static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_bufferData2Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
13385{
13386 auto& vm = JSC::getVM(lexicalGlobalObject);
13387 auto throwScope = DECLARE_THROW_SCOPE(vm);
13388 UNUSED_PARAM(throwScope);
13389 UNUSED_PARAM(callFrame);
13390 auto& impl = castedThis->wrapped();
13391 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
13392 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
13393 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13394 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
13395 auto data = convert<IDLNullable<IDLUnion<IDLAllowSharedAdaptor<IDLArrayBuffer>, IDLAllowSharedAdaptor<IDLArrayBufferView>>>>(*lexicalGlobalObject, argument1.value());
13396 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13397 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
13398 auto usage = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
13399 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13400 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
13401 InspectorCanvasCallTracer::recordAction(impl, "bufferData"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, data), InspectorCanvasCallTracer::processArgument(impl, usage) });
13402 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.bufferData(WTFMove(target), WTFMove(data), WTFMove(usage)); })));
13403}
13404
13405#endif
13406
13407#if ENABLE(WEBGL)
13408static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_bufferData3Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
13409{
13410 auto& vm = JSC::getVM(lexicalGlobalObject);
13411 auto throwScope = DECLARE_THROW_SCOPE(vm);
13412 UNUSED_PARAM(throwScope);
13413 UNUSED_PARAM(callFrame);
13414 auto& impl = castedThis->wrapped();
13415 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
13416 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
13417 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13418 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
13419 auto size = convert<IDLLongLong>(*lexicalGlobalObject, argument1.value());
13420 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13421 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
13422 auto usage = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
13423 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13424 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
13425 InspectorCanvasCallTracer::recordAction(impl, "bufferData"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, size), InspectorCanvasCallTracer::processArgument(impl, usage) });
13426 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.bufferData(WTFMove(target), WTFMove(size), WTFMove(usage)); })));
13427}
13428
13429#endif
13430
13431static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_bufferDataOverloadDispatcher(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
13432{
13433 auto& vm = JSC::getVM(lexicalGlobalObject);
13434 auto throwScope = DECLARE_THROW_SCOPE(vm);
13435 UNUSED_PARAM(throwScope);
13436 UNUSED_PARAM(callFrame);
13437 size_t argsCount = std::min<size_t>(5, callFrame->argumentCount());
13438 if (argsCount == 3) {
13439 JSValue distinguishingArg = callFrame->uncheckedArgument(1);
13440#if ENABLE(WEBGL)
13441 if (distinguishingArg.isUndefinedOrNull())
13442 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_bufferData2Body(lexicalGlobalObject, callFrame, castedThis)));
13443#endif
13444#if ENABLE(WEBGL)
13445 if (distinguishingArg.isObject() && asObject(distinguishingArg)->inherits<JSArrayBuffer>(vm))
13446 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_bufferData2Body(lexicalGlobalObject, callFrame, castedThis)));
13447#endif
13448#if ENABLE(WEBGL)
13449 if (distinguishingArg.isObject() && asObject(distinguishingArg)->inherits<JSArrayBufferView>(vm))
13450 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_bufferData2Body(lexicalGlobalObject, callFrame, castedThis)));
13451#endif
13452#if ENABLE(WEBGL)
13453 if (distinguishingArg.isNumber())
13454 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_bufferData3Body(lexicalGlobalObject, callFrame, castedThis)));
13455#endif
13456#if ENABLE(WEBGL)
13457 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_bufferData3Body(lexicalGlobalObject, callFrame, castedThis)));
13458#endif
13459 }
13460 if (argsCount == 4) {
13461 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_bufferData1Body(lexicalGlobalObject, callFrame, castedThis)));
13462 }
13463 if (argsCount == 5) {
13464 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_bufferData1Body(lexicalGlobalObject, callFrame, castedThis)));
13465 }
13466 return argsCount < 3 ? throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject)) : throwVMTypeError(lexicalGlobalObject, throwScope);
13467}
13468
13469JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_bufferData, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
13470{
13471 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_bufferDataOverloadDispatcher>(*lexicalGlobalObject, *callFrame, "bufferData");
13472}
13473
13474#if ENABLE(WEBGL)
13475static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_bufferSubData2Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
13476{
13477 auto& vm = JSC::getVM(lexicalGlobalObject);
13478 auto throwScope = DECLARE_THROW_SCOPE(vm);
13479 UNUSED_PARAM(throwScope);
13480 UNUSED_PARAM(callFrame);
13481 auto& impl = castedThis->wrapped();
13482 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
13483 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
13484 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13485 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
13486 auto offset = convert<IDLLongLong>(*lexicalGlobalObject, argument1.value());
13487 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13488 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
13489 auto data = convert<IDLUnion<IDLAllowSharedAdaptor<IDLArrayBuffer>, IDLAllowSharedAdaptor<IDLArrayBufferView>>>(*lexicalGlobalObject, argument2.value());
13490 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13491 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
13492 InspectorCanvasCallTracer::recordAction(impl, "bufferSubData"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, offset), InspectorCanvasCallTracer::processArgument(impl, data) });
13493 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.bufferSubData(WTFMove(target), WTFMove(offset), WTFMove(data)); })));
13494}
13495
13496#endif
13497
13498static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_bufferSubDataOverloadDispatcher(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
13499{
13500 auto& vm = JSC::getVM(lexicalGlobalObject);
13501 auto throwScope = DECLARE_THROW_SCOPE(vm);
13502 UNUSED_PARAM(throwScope);
13503 UNUSED_PARAM(callFrame);
13504 size_t argsCount = std::min<size_t>(5, callFrame->argumentCount());
13505 if (argsCount == 3) {
13506#if ENABLE(WEBGL)
13507 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_bufferSubData2Body(lexicalGlobalObject, callFrame, castedThis)));
13508#endif
13509 }
13510 if (argsCount == 4) {
13511 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_bufferSubData1Body(lexicalGlobalObject, callFrame, castedThis)));
13512 }
13513 if (argsCount == 5) {
13514 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_bufferSubData1Body(lexicalGlobalObject, callFrame, castedThis)));
13515 }
13516 return argsCount < 3 ? throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject)) : throwVMTypeError(lexicalGlobalObject, throwScope);
13517}
13518
13519JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_bufferSubData, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
13520{
13521 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_bufferSubDataOverloadDispatcher>(*lexicalGlobalObject, *callFrame, "bufferSubData");
13522}
13523
13524#if ENABLE(WEBGL)
13525static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_checkFramebufferStatusBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
13526{
13527 auto& vm = JSC::getVM(lexicalGlobalObject);
13528 auto throwScope = DECLARE_THROW_SCOPE(vm);
13529 UNUSED_PARAM(throwScope);
13530 UNUSED_PARAM(callFrame);
13531 auto& impl = castedThis->wrapped();
13532 if (UNLIKELY(callFrame->argumentCount() < 1))
13533 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
13534 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
13535 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
13536 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13537 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
13538 InspectorCanvasCallTracer::recordAction(impl, "checkFramebufferStatus"_s, { InspectorCanvasCallTracer::processArgument(impl, target) });
13539 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUnsignedLong>(*lexicalGlobalObject, throwScope, impl.checkFramebufferStatus(WTFMove(target)))));
13540}
13541
13542JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_checkFramebufferStatus, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
13543{
13544 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_checkFramebufferStatusBody>(*lexicalGlobalObject, *callFrame, "checkFramebufferStatus");
13545}
13546
13547#endif
13548
13549#if ENABLE(WEBGL)
13550static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_clearBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
13551{
13552 auto& vm = JSC::getVM(lexicalGlobalObject);
13553 auto throwScope = DECLARE_THROW_SCOPE(vm);
13554 UNUSED_PARAM(throwScope);
13555 UNUSED_PARAM(callFrame);
13556 auto& impl = castedThis->wrapped();
13557 if (UNLIKELY(callFrame->argumentCount() < 1))
13558 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
13559 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
13560 auto mask = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
13561 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13562 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
13563 InspectorCanvasCallTracer::recordAction(impl, "clear"_s, { InspectorCanvasCallTracer::processArgument(impl, mask) });
13564 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.clear(WTFMove(mask)); })));
13565}
13566
13567JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_clear, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
13568{
13569 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_clearBody>(*lexicalGlobalObject, *callFrame, "clear");
13570}
13571
13572#endif
13573
13574#if ENABLE(WEBGL)
13575static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_clearColorBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
13576{
13577 auto& vm = JSC::getVM(lexicalGlobalObject);
13578 auto throwScope = DECLARE_THROW_SCOPE(vm);
13579 UNUSED_PARAM(throwScope);
13580 UNUSED_PARAM(callFrame);
13581 auto& impl = castedThis->wrapped();
13582 if (UNLIKELY(callFrame->argumentCount() < 4))
13583 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
13584 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
13585 auto red = convert<IDLUnrestrictedFloat>(*lexicalGlobalObject, argument0.value());
13586 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13587 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
13588 auto green = convert<IDLUnrestrictedFloat>(*lexicalGlobalObject, argument1.value());
13589 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13590 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
13591 auto blue = convert<IDLUnrestrictedFloat>(*lexicalGlobalObject, argument2.value());
13592 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13593 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
13594 auto alpha = convert<IDLUnrestrictedFloat>(*lexicalGlobalObject, argument3.value());
13595 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13596 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
13597 InspectorCanvasCallTracer::recordAction(impl, "clearColor"_s, { InspectorCanvasCallTracer::processArgument(impl, red), InspectorCanvasCallTracer::processArgument(impl, green), InspectorCanvasCallTracer::processArgument(impl, blue), InspectorCanvasCallTracer::processArgument(impl, alpha) });
13598 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.clearColor(WTFMove(red), WTFMove(green), WTFMove(blue), WTFMove(alpha)); })));
13599}
13600
13601JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_clearColor, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
13602{
13603 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_clearColorBody>(*lexicalGlobalObject, *callFrame, "clearColor");
13604}
13605
13606#endif
13607
13608#if ENABLE(WEBGL)
13609static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_clearDepthBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
13610{
13611 auto& vm = JSC::getVM(lexicalGlobalObject);
13612 auto throwScope = DECLARE_THROW_SCOPE(vm);
13613 UNUSED_PARAM(throwScope);
13614 UNUSED_PARAM(callFrame);
13615 auto& impl = castedThis->wrapped();
13616 if (UNLIKELY(callFrame->argumentCount() < 1))
13617 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
13618 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
13619 auto depth = convert<IDLUnrestrictedFloat>(*lexicalGlobalObject, argument0.value());
13620 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13621 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
13622 InspectorCanvasCallTracer::recordAction(impl, "clearDepth"_s, { InspectorCanvasCallTracer::processArgument(impl, depth) });
13623 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.clearDepth(WTFMove(depth)); })));
13624}
13625
13626JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_clearDepth, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
13627{
13628 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_clearDepthBody>(*lexicalGlobalObject, *callFrame, "clearDepth");
13629}
13630
13631#endif
13632
13633#if ENABLE(WEBGL)
13634static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_clearStencilBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
13635{
13636 auto& vm = JSC::getVM(lexicalGlobalObject);
13637 auto throwScope = DECLARE_THROW_SCOPE(vm);
13638 UNUSED_PARAM(throwScope);
13639 UNUSED_PARAM(callFrame);
13640 auto& impl = castedThis->wrapped();
13641 if (UNLIKELY(callFrame->argumentCount() < 1))
13642 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
13643 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
13644 auto s = convert<IDLLong>(*lexicalGlobalObject, argument0.value());
13645 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13646 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
13647 InspectorCanvasCallTracer::recordAction(impl, "clearStencil"_s, { InspectorCanvasCallTracer::processArgument(impl, s) });
13648 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.clearStencil(WTFMove(s)); })));
13649}
13650
13651JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_clearStencil, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
13652{
13653 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_clearStencilBody>(*lexicalGlobalObject, *callFrame, "clearStencil");
13654}
13655
13656#endif
13657
13658#if ENABLE(WEBGL)
13659static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_colorMaskBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
13660{
13661 auto& vm = JSC::getVM(lexicalGlobalObject);
13662 auto throwScope = DECLARE_THROW_SCOPE(vm);
13663 UNUSED_PARAM(throwScope);
13664 UNUSED_PARAM(callFrame);
13665 auto& impl = castedThis->wrapped();
13666 if (UNLIKELY(callFrame->argumentCount() < 4))
13667 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
13668 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
13669 auto red = convert<IDLBoolean>(*lexicalGlobalObject, argument0.value());
13670 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13671 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
13672 auto green = convert<IDLBoolean>(*lexicalGlobalObject, argument1.value());
13673 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13674 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
13675 auto blue = convert<IDLBoolean>(*lexicalGlobalObject, argument2.value());
13676 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13677 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
13678 auto alpha = convert<IDLBoolean>(*lexicalGlobalObject, argument3.value());
13679 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13680 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
13681 InspectorCanvasCallTracer::recordAction(impl, "colorMask"_s, { InspectorCanvasCallTracer::processArgument(impl, red), InspectorCanvasCallTracer::processArgument(impl, green), InspectorCanvasCallTracer::processArgument(impl, blue), InspectorCanvasCallTracer::processArgument(impl, alpha) });
13682 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.colorMask(WTFMove(red), WTFMove(green), WTFMove(blue), WTFMove(alpha)); })));
13683}
13684
13685JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_colorMask, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
13686{
13687 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_colorMaskBody>(*lexicalGlobalObject, *callFrame, "colorMask");
13688}
13689
13690#endif
13691
13692#if ENABLE(WEBGL)
13693static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_compileShaderBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
13694{
13695 auto& vm = JSC::getVM(lexicalGlobalObject);
13696 auto throwScope = DECLARE_THROW_SCOPE(vm);
13697 UNUSED_PARAM(throwScope);
13698 UNUSED_PARAM(callFrame);
13699 auto& impl = castedThis->wrapped();
13700 if (UNLIKELY(callFrame->argumentCount() < 1))
13701 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
13702 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
13703 auto shader = convert<IDLInterface<WebGLShader>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "shader", "WebGL2RenderingContext", "compileShader", "WebGLShader"); });
13704 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13705 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
13706 InspectorCanvasCallTracer::recordAction(impl, "compileShader"_s, { InspectorCanvasCallTracer::processArgument(impl, shader) });
13707 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.compileShader(*shader); })));
13708}
13709
13710JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_compileShader, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
13711{
13712 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_compileShaderBody>(*lexicalGlobalObject, *callFrame, "compileShader");
13713}
13714
13715#endif
13716
13717#if ENABLE(WEBGL)
13718static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_texImage2D4Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
13719{
13720 auto& vm = JSC::getVM(lexicalGlobalObject);
13721 auto throwScope = DECLARE_THROW_SCOPE(vm);
13722 UNUSED_PARAM(throwScope);
13723 UNUSED_PARAM(callFrame);
13724 auto& impl = castedThis->wrapped();
13725 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
13726 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
13727 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13728 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
13729 auto level = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
13730 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13731 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
13732 auto internalformat = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
13733 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13734 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
13735 auto width = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
13736 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13737 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
13738 auto height = convert<IDLLong>(*lexicalGlobalObject, argument4.value());
13739 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13740 EnsureStillAliveScope argument5 = callFrame->uncheckedArgument(5);
13741 auto border = convert<IDLLong>(*lexicalGlobalObject, argument5.value());
13742 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13743 EnsureStillAliveScope argument6 = callFrame->uncheckedArgument(6);
13744 auto format = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument6.value());
13745 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13746 EnsureStillAliveScope argument7 = callFrame->uncheckedArgument(7);
13747 auto type = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument7.value());
13748 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13749 EnsureStillAliveScope argument8 = callFrame->uncheckedArgument(8);
13750 auto pixels = convert<IDLNullable<IDLAllowSharedAdaptor<IDLArrayBufferView>>>(*lexicalGlobalObject, argument8.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 8, "pixels", "WebGL2RenderingContext", "texImage2D", "ArrayBufferView"); });
13751 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13752 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
13753 InspectorCanvasCallTracer::recordAction(impl, "texImage2D"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, level), InspectorCanvasCallTracer::processArgument(impl, internalformat), InspectorCanvasCallTracer::processArgument(impl, width), InspectorCanvasCallTracer::processArgument(impl, height), InspectorCanvasCallTracer::processArgument(impl, border), InspectorCanvasCallTracer::processArgument(impl, format), InspectorCanvasCallTracer::processArgument(impl, type), InspectorCanvasCallTracer::processArgument(impl, pixels) });
13754 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.texImage2D(WTFMove(target), WTFMove(level), WTFMove(internalformat), WTFMove(width), WTFMove(height), WTFMove(border), WTFMove(format), WTFMove(type), WTFMove(pixels)); })));
13755}
13756
13757#endif
13758
13759#if ENABLE(WEBGL)
13760static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_texImage2D5Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
13761{
13762 auto& vm = JSC::getVM(lexicalGlobalObject);
13763 auto throwScope = DECLARE_THROW_SCOPE(vm);
13764 UNUSED_PARAM(throwScope);
13765 UNUSED_PARAM(callFrame);
13766 auto& impl = castedThis->wrapped();
13767 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
13768 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
13769 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13770 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
13771 auto level = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
13772 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13773 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
13774 auto internalformat = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
13775 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13776 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
13777 auto format = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument3.value());
13778 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13779 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
13780 auto type = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument4.value());
13781 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13782 EnsureStillAliveScope argument5 = callFrame->uncheckedArgument(5);
13783 auto source = convert<IDLUnion<IDLInterface<ImageBitmap>, IDLInterface<ImageData>, IDLInterface<HTMLImageElement>, IDLInterface<HTMLCanvasElement>, IDLInterface<HTMLVideoElement>>>(*lexicalGlobalObject, argument5.value());
13784 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13785 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
13786 InspectorCanvasCallTracer::recordAction(impl, "texImage2D"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, level), InspectorCanvasCallTracer::processArgument(impl, internalformat), InspectorCanvasCallTracer::processArgument(impl, format), InspectorCanvasCallTracer::processArgument(impl, type), InspectorCanvasCallTracer::processArgument(impl, source) });
13787 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.texImage2D(WTFMove(target), WTFMove(level), WTFMove(internalformat), WTFMove(format), WTFMove(type), WTFMove(source)); })));
13788}
13789
13790#endif
13791
13792static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_texImage2DOverloadDispatcher(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
13793{
13794 auto& vm = JSC::getVM(lexicalGlobalObject);
13795 auto throwScope = DECLARE_THROW_SCOPE(vm);
13796 UNUSED_PARAM(throwScope);
13797 UNUSED_PARAM(callFrame);
13798 size_t argsCount = std::min<size_t>(10, callFrame->argumentCount());
13799 if (argsCount == 10) {
13800 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_texImage2D3Body(lexicalGlobalObject, callFrame, castedThis)));
13801 }
13802 if (argsCount == 6) {
13803#if ENABLE(WEBGL)
13804 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_texImage2D5Body(lexicalGlobalObject, callFrame, castedThis)));
13805#endif
13806 }
13807 if (argsCount == 9) {
13808 JSValue distinguishingArg = callFrame->uncheckedArgument(8);
13809#if ENABLE(WEBGL)
13810 if (distinguishingArg.isUndefinedOrNull())
13811 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_texImage2D4Body(lexicalGlobalObject, callFrame, castedThis)));
13812#endif
13813 if (distinguishingArg.isObject() && asObject(distinguishingArg)->inherits<JSImageBitmap>(vm))
13814 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_texImage2D2Body(lexicalGlobalObject, callFrame, castedThis)));
13815 if (distinguishingArg.isObject() && asObject(distinguishingArg)->inherits<JSImageData>(vm))
13816 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_texImage2D2Body(lexicalGlobalObject, callFrame, castedThis)));
13817 if (distinguishingArg.isObject() && asObject(distinguishingArg)->inherits<JSHTMLImageElement>(vm))
13818 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_texImage2D2Body(lexicalGlobalObject, callFrame, castedThis)));
13819 if (distinguishingArg.isObject() && asObject(distinguishingArg)->inherits<JSHTMLCanvasElement>(vm))
13820 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_texImage2D2Body(lexicalGlobalObject, callFrame, castedThis)));
13821 if (distinguishingArg.isObject() && asObject(distinguishingArg)->inherits<JSHTMLVideoElement>(vm))
13822 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_texImage2D2Body(lexicalGlobalObject, callFrame, castedThis)));
13823#if ENABLE(WEBGL)
13824 if (distinguishingArg.isObject() && asObject(distinguishingArg)->inherits<JSArrayBufferView>(vm))
13825 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_texImage2D4Body(lexicalGlobalObject, callFrame, castedThis)));
13826#endif
13827 if (distinguishingArg.isNumber())
13828 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_texImage2D1Body(lexicalGlobalObject, callFrame, castedThis)));
13829 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_texImage2D1Body(lexicalGlobalObject, callFrame, castedThis)));
13830 }
13831 return argsCount < 6 ? throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject)) : throwVMTypeError(lexicalGlobalObject, throwScope);
13832}
13833
13834JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_texImage2D, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
13835{
13836 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_texImage2DOverloadDispatcher>(*lexicalGlobalObject, *callFrame, "texImage2D");
13837}
13838
13839#if ENABLE(WEBGL)
13840static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_texSubImage2D4Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
13841{
13842 auto& vm = JSC::getVM(lexicalGlobalObject);
13843 auto throwScope = DECLARE_THROW_SCOPE(vm);
13844 UNUSED_PARAM(throwScope);
13845 UNUSED_PARAM(callFrame);
13846 auto& impl = castedThis->wrapped();
13847 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
13848 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
13849 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13850 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
13851 auto level = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
13852 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13853 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
13854 auto xoffset = convert<IDLLong>(*lexicalGlobalObject, argument2.value());
13855 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13856 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
13857 auto yoffset = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
13858 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13859 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
13860 auto width = convert<IDLLong>(*lexicalGlobalObject, argument4.value());
13861 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13862 EnsureStillAliveScope argument5 = callFrame->uncheckedArgument(5);
13863 auto height = convert<IDLLong>(*lexicalGlobalObject, argument5.value());
13864 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13865 EnsureStillAliveScope argument6 = callFrame->uncheckedArgument(6);
13866 auto format = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument6.value());
13867 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13868 EnsureStillAliveScope argument7 = callFrame->uncheckedArgument(7);
13869 auto type = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument7.value());
13870 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13871 EnsureStillAliveScope argument8 = callFrame->uncheckedArgument(8);
13872 auto pixels = convert<IDLNullable<IDLAllowSharedAdaptor<IDLArrayBufferView>>>(*lexicalGlobalObject, argument8.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 8, "pixels", "WebGL2RenderingContext", "texSubImage2D", "ArrayBufferView"); });
13873 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13874 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
13875 InspectorCanvasCallTracer::recordAction(impl, "texSubImage2D"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, level), InspectorCanvasCallTracer::processArgument(impl, xoffset), InspectorCanvasCallTracer::processArgument(impl, yoffset), InspectorCanvasCallTracer::processArgument(impl, width), InspectorCanvasCallTracer::processArgument(impl, height), InspectorCanvasCallTracer::processArgument(impl, format), InspectorCanvasCallTracer::processArgument(impl, type), InspectorCanvasCallTracer::processArgument(impl, pixels) });
13876 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.texSubImage2D(WTFMove(target), WTFMove(level), WTFMove(xoffset), WTFMove(yoffset), WTFMove(width), WTFMove(height), WTFMove(format), WTFMove(type), WTFMove(pixels)); })));
13877}
13878
13879#endif
13880
13881#if ENABLE(WEBGL)
13882static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_texSubImage2D5Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
13883{
13884 auto& vm = JSC::getVM(lexicalGlobalObject);
13885 auto throwScope = DECLARE_THROW_SCOPE(vm);
13886 UNUSED_PARAM(throwScope);
13887 UNUSED_PARAM(callFrame);
13888 auto& impl = castedThis->wrapped();
13889 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
13890 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
13891 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13892 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
13893 auto level = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
13894 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13895 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
13896 auto xoffset = convert<IDLLong>(*lexicalGlobalObject, argument2.value());
13897 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13898 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
13899 auto yoffset = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
13900 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13901 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
13902 auto format = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument4.value());
13903 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13904 EnsureStillAliveScope argument5 = callFrame->uncheckedArgument(5);
13905 auto type = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument5.value());
13906 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13907 EnsureStillAliveScope argument6 = callFrame->uncheckedArgument(6);
13908 auto source = convert<IDLUnion<IDLInterface<ImageBitmap>, IDLInterface<ImageData>, IDLInterface<HTMLImageElement>, IDLInterface<HTMLCanvasElement>, IDLInterface<HTMLVideoElement>>>(*lexicalGlobalObject, argument6.value());
13909 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13910 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
13911 InspectorCanvasCallTracer::recordAction(impl, "texSubImage2D"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, level), InspectorCanvasCallTracer::processArgument(impl, xoffset), InspectorCanvasCallTracer::processArgument(impl, yoffset), InspectorCanvasCallTracer::processArgument(impl, format), InspectorCanvasCallTracer::processArgument(impl, type), InspectorCanvasCallTracer::processArgument(impl, source) });
13912 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.texSubImage2D(WTFMove(target), WTFMove(level), WTFMove(xoffset), WTFMove(yoffset), WTFMove(format), WTFMove(type), WTFMove(source)); })));
13913}
13914
13915#endif
13916
13917static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_texSubImage2DOverloadDispatcher(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
13918{
13919 auto& vm = JSC::getVM(lexicalGlobalObject);
13920 auto throwScope = DECLARE_THROW_SCOPE(vm);
13921 UNUSED_PARAM(throwScope);
13922 UNUSED_PARAM(callFrame);
13923 size_t argsCount = std::min<size_t>(10, callFrame->argumentCount());
13924 if (argsCount == 10) {
13925 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_texSubImage2D3Body(lexicalGlobalObject, callFrame, castedThis)));
13926 }
13927 if (argsCount == 7) {
13928#if ENABLE(WEBGL)
13929 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_texSubImage2D5Body(lexicalGlobalObject, callFrame, castedThis)));
13930#endif
13931 }
13932 if (argsCount == 9) {
13933 JSValue distinguishingArg = callFrame->uncheckedArgument(8);
13934#if ENABLE(WEBGL)
13935 if (distinguishingArg.isUndefinedOrNull())
13936 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_texSubImage2D4Body(lexicalGlobalObject, callFrame, castedThis)));
13937#endif
13938 if (distinguishingArg.isObject() && asObject(distinguishingArg)->inherits<JSImageBitmap>(vm))
13939 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_texSubImage2D2Body(lexicalGlobalObject, callFrame, castedThis)));
13940 if (distinguishingArg.isObject() && asObject(distinguishingArg)->inherits<JSImageData>(vm))
13941 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_texSubImage2D2Body(lexicalGlobalObject, callFrame, castedThis)));
13942 if (distinguishingArg.isObject() && asObject(distinguishingArg)->inherits<JSHTMLImageElement>(vm))
13943 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_texSubImage2D2Body(lexicalGlobalObject, callFrame, castedThis)));
13944 if (distinguishingArg.isObject() && asObject(distinguishingArg)->inherits<JSHTMLCanvasElement>(vm))
13945 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_texSubImage2D2Body(lexicalGlobalObject, callFrame, castedThis)));
13946 if (distinguishingArg.isObject() && asObject(distinguishingArg)->inherits<JSHTMLVideoElement>(vm))
13947 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_texSubImage2D2Body(lexicalGlobalObject, callFrame, castedThis)));
13948#if ENABLE(WEBGL)
13949 if (distinguishingArg.isObject() && asObject(distinguishingArg)->inherits<JSArrayBufferView>(vm))
13950 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_texSubImage2D4Body(lexicalGlobalObject, callFrame, castedThis)));
13951#endif
13952 if (distinguishingArg.isNumber())
13953 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_texSubImage2D1Body(lexicalGlobalObject, callFrame, castedThis)));
13954 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_texSubImage2D1Body(lexicalGlobalObject, callFrame, castedThis)));
13955 }
13956 return argsCount < 7 ? throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject)) : throwVMTypeError(lexicalGlobalObject, throwScope);
13957}
13958
13959JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_texSubImage2D, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
13960{
13961 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_texSubImage2DOverloadDispatcher>(*lexicalGlobalObject, *callFrame, "texSubImage2D");
13962}
13963
13964#if ENABLE(WEBGL)
13965static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_compressedTexImage2D3Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
13966{
13967 auto& vm = JSC::getVM(lexicalGlobalObject);
13968 auto throwScope = DECLARE_THROW_SCOPE(vm);
13969 UNUSED_PARAM(throwScope);
13970 UNUSED_PARAM(callFrame);
13971 auto& impl = castedThis->wrapped();
13972 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
13973 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
13974 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13975 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
13976 auto level = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
13977 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13978 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
13979 auto internalformat = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
13980 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13981 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
13982 auto width = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
13983 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13984 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
13985 auto height = convert<IDLLong>(*lexicalGlobalObject, argument4.value());
13986 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13987 EnsureStillAliveScope argument5 = callFrame->uncheckedArgument(5);
13988 auto border = convert<IDLLong>(*lexicalGlobalObject, argument5.value());
13989 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13990 EnsureStillAliveScope argument6 = callFrame->uncheckedArgument(6);
13991 auto data = convert<IDLAllowSharedAdaptor<IDLArrayBufferView>>(*lexicalGlobalObject, argument6.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 6, "data", "WebGL2RenderingContext", "compressedTexImage2D", "ArrayBufferView"); });
13992 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
13993 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
13994 InspectorCanvasCallTracer::recordAction(impl, "compressedTexImage2D"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, level), InspectorCanvasCallTracer::processArgument(impl, internalformat), InspectorCanvasCallTracer::processArgument(impl, width), InspectorCanvasCallTracer::processArgument(impl, height), InspectorCanvasCallTracer::processArgument(impl, border), InspectorCanvasCallTracer::processArgument(impl, data) });
13995 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.compressedTexImage2D(WTFMove(target), WTFMove(level), WTFMove(internalformat), WTFMove(width), WTFMove(height), WTFMove(border), data.releaseNonNull()); })));
13996}
13997
13998#endif
13999
14000static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_compressedTexImage2DOverloadDispatcher(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
14001{
14002 auto& vm = JSC::getVM(lexicalGlobalObject);
14003 auto throwScope = DECLARE_THROW_SCOPE(vm);
14004 UNUSED_PARAM(throwScope);
14005 UNUSED_PARAM(callFrame);
14006 size_t argsCount = std::min<size_t>(9, callFrame->argumentCount());
14007 if (argsCount == 7) {
14008#if ENABLE(WEBGL)
14009 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_compressedTexImage2D3Body(lexicalGlobalObject, callFrame, castedThis)));
14010#endif
14011 }
14012 if (argsCount == 8) {
14013 JSValue distinguishingArg = callFrame->uncheckedArgument(6);
14014 if (distinguishingArg.isObject() && asObject(distinguishingArg)->inherits<JSArrayBufferView>(vm))
14015 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_compressedTexImage2D2Body(lexicalGlobalObject, callFrame, castedThis)));
14016 if (distinguishingArg.isNumber())
14017 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_compressedTexImage2D1Body(lexicalGlobalObject, callFrame, castedThis)));
14018 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_compressedTexImage2D1Body(lexicalGlobalObject, callFrame, castedThis)));
14019 }
14020 if (argsCount == 9) {
14021 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_compressedTexImage2D2Body(lexicalGlobalObject, callFrame, castedThis)));
14022 }
14023 return argsCount < 7 ? throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject)) : throwVMTypeError(lexicalGlobalObject, throwScope);
14024}
14025
14026JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_compressedTexImage2D, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
14027{
14028 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_compressedTexImage2DOverloadDispatcher>(*lexicalGlobalObject, *callFrame, "compressedTexImage2D");
14029}
14030
14031#if ENABLE(WEBGL)
14032static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_compressedTexSubImage2D3Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
14033{
14034 auto& vm = JSC::getVM(lexicalGlobalObject);
14035 auto throwScope = DECLARE_THROW_SCOPE(vm);
14036 UNUSED_PARAM(throwScope);
14037 UNUSED_PARAM(callFrame);
14038 auto& impl = castedThis->wrapped();
14039 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
14040 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
14041 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14042 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
14043 auto level = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
14044 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14045 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
14046 auto xoffset = convert<IDLLong>(*lexicalGlobalObject, argument2.value());
14047 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14048 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
14049 auto yoffset = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
14050 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14051 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
14052 auto width = convert<IDLLong>(*lexicalGlobalObject, argument4.value());
14053 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14054 EnsureStillAliveScope argument5 = callFrame->uncheckedArgument(5);
14055 auto height = convert<IDLLong>(*lexicalGlobalObject, argument5.value());
14056 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14057 EnsureStillAliveScope argument6 = callFrame->uncheckedArgument(6);
14058 auto format = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument6.value());
14059 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14060 EnsureStillAliveScope argument7 = callFrame->uncheckedArgument(7);
14061 auto data = convert<IDLAllowSharedAdaptor<IDLArrayBufferView>>(*lexicalGlobalObject, argument7.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 7, "data", "WebGL2RenderingContext", "compressedTexSubImage2D", "ArrayBufferView"); });
14062 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14063 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
14064 InspectorCanvasCallTracer::recordAction(impl, "compressedTexSubImage2D"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, level), InspectorCanvasCallTracer::processArgument(impl, xoffset), InspectorCanvasCallTracer::processArgument(impl, yoffset), InspectorCanvasCallTracer::processArgument(impl, width), InspectorCanvasCallTracer::processArgument(impl, height), InspectorCanvasCallTracer::processArgument(impl, format), InspectorCanvasCallTracer::processArgument(impl, data) });
14065 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.compressedTexSubImage2D(WTFMove(target), WTFMove(level), WTFMove(xoffset), WTFMove(yoffset), WTFMove(width), WTFMove(height), WTFMove(format), data.releaseNonNull()); })));
14066}
14067
14068#endif
14069
14070static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_compressedTexSubImage2DOverloadDispatcher(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
14071{
14072 auto& vm = JSC::getVM(lexicalGlobalObject);
14073 auto throwScope = DECLARE_THROW_SCOPE(vm);
14074 UNUSED_PARAM(throwScope);
14075 UNUSED_PARAM(callFrame);
14076 size_t argsCount = std::min<size_t>(10, callFrame->argumentCount());
14077 if (argsCount == 10) {
14078 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_compressedTexSubImage2D2Body(lexicalGlobalObject, callFrame, castedThis)));
14079 }
14080 if (argsCount == 8) {
14081#if ENABLE(WEBGL)
14082 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_compressedTexSubImage2D3Body(lexicalGlobalObject, callFrame, castedThis)));
14083#endif
14084 }
14085 if (argsCount == 9) {
14086 JSValue distinguishingArg = callFrame->uncheckedArgument(7);
14087 if (distinguishingArg.isObject() && asObject(distinguishingArg)->inherits<JSArrayBufferView>(vm))
14088 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_compressedTexSubImage2D2Body(lexicalGlobalObject, callFrame, castedThis)));
14089 if (distinguishingArg.isNumber())
14090 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_compressedTexSubImage2D1Body(lexicalGlobalObject, callFrame, castedThis)));
14091 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_compressedTexSubImage2D1Body(lexicalGlobalObject, callFrame, castedThis)));
14092 }
14093 return argsCount < 8 ? throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject)) : throwVMTypeError(lexicalGlobalObject, throwScope);
14094}
14095
14096JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_compressedTexSubImage2D, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
14097{
14098 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_compressedTexSubImage2DOverloadDispatcher>(*lexicalGlobalObject, *callFrame, "compressedTexSubImage2D");
14099}
14100
14101#if ENABLE(WEBGL)
14102static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_copyTexImage2DBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
14103{
14104 auto& vm = JSC::getVM(lexicalGlobalObject);
14105 auto throwScope = DECLARE_THROW_SCOPE(vm);
14106 UNUSED_PARAM(throwScope);
14107 UNUSED_PARAM(callFrame);
14108 auto& impl = castedThis->wrapped();
14109 if (UNLIKELY(callFrame->argumentCount() < 8))
14110 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
14111 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
14112 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
14113 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14114 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
14115 auto level = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
14116 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14117 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
14118 auto internalformat = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
14119 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14120 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
14121 auto x = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
14122 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14123 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
14124 auto y = convert<IDLLong>(*lexicalGlobalObject, argument4.value());
14125 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14126 EnsureStillAliveScope argument5 = callFrame->uncheckedArgument(5);
14127 auto width = convert<IDLLong>(*lexicalGlobalObject, argument5.value());
14128 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14129 EnsureStillAliveScope argument6 = callFrame->uncheckedArgument(6);
14130 auto height = convert<IDLLong>(*lexicalGlobalObject, argument6.value());
14131 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14132 EnsureStillAliveScope argument7 = callFrame->uncheckedArgument(7);
14133 auto border = convert<IDLLong>(*lexicalGlobalObject, argument7.value());
14134 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14135 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
14136 InspectorCanvasCallTracer::recordAction(impl, "copyTexImage2D"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, level), InspectorCanvasCallTracer::processArgument(impl, internalformat), InspectorCanvasCallTracer::processArgument(impl, x), InspectorCanvasCallTracer::processArgument(impl, y), InspectorCanvasCallTracer::processArgument(impl, width), InspectorCanvasCallTracer::processArgument(impl, height), InspectorCanvasCallTracer::processArgument(impl, border) });
14137 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.copyTexImage2D(WTFMove(target), WTFMove(level), WTFMove(internalformat), WTFMove(x), WTFMove(y), WTFMove(width), WTFMove(height), WTFMove(border)); })));
14138}
14139
14140JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_copyTexImage2D, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
14141{
14142 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_copyTexImage2DBody>(*lexicalGlobalObject, *callFrame, "copyTexImage2D");
14143}
14144
14145#endif
14146
14147#if ENABLE(WEBGL)
14148static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_copyTexSubImage2DBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
14149{
14150 auto& vm = JSC::getVM(lexicalGlobalObject);
14151 auto throwScope = DECLARE_THROW_SCOPE(vm);
14152 UNUSED_PARAM(throwScope);
14153 UNUSED_PARAM(callFrame);
14154 auto& impl = castedThis->wrapped();
14155 if (UNLIKELY(callFrame->argumentCount() < 8))
14156 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
14157 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
14158 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
14159 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14160 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
14161 auto level = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
14162 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14163 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
14164 auto xoffset = convert<IDLLong>(*lexicalGlobalObject, argument2.value());
14165 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14166 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
14167 auto yoffset = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
14168 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14169 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
14170 auto x = convert<IDLLong>(*lexicalGlobalObject, argument4.value());
14171 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14172 EnsureStillAliveScope argument5 = callFrame->uncheckedArgument(5);
14173 auto y = convert<IDLLong>(*lexicalGlobalObject, argument5.value());
14174 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14175 EnsureStillAliveScope argument6 = callFrame->uncheckedArgument(6);
14176 auto width = convert<IDLLong>(*lexicalGlobalObject, argument6.value());
14177 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14178 EnsureStillAliveScope argument7 = callFrame->uncheckedArgument(7);
14179 auto height = convert<IDLLong>(*lexicalGlobalObject, argument7.value());
14180 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14181 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
14182 InspectorCanvasCallTracer::recordAction(impl, "copyTexSubImage2D"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, level), InspectorCanvasCallTracer::processArgument(impl, xoffset), InspectorCanvasCallTracer::processArgument(impl, yoffset), InspectorCanvasCallTracer::processArgument(impl, x), InspectorCanvasCallTracer::processArgument(impl, y), InspectorCanvasCallTracer::processArgument(impl, width), InspectorCanvasCallTracer::processArgument(impl, height) });
14183 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.copyTexSubImage2D(WTFMove(target), WTFMove(level), WTFMove(xoffset), WTFMove(yoffset), WTFMove(x), WTFMove(y), WTFMove(width), WTFMove(height)); })));
14184}
14185
14186JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_copyTexSubImage2D, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
14187{
14188 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_copyTexSubImage2DBody>(*lexicalGlobalObject, *callFrame, "copyTexSubImage2D");
14189}
14190
14191#endif
14192
14193#if ENABLE(WEBGL)
14194static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_createBufferBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
14195{
14196 auto& vm = JSC::getVM(lexicalGlobalObject);
14197 auto throwScope = DECLARE_THROW_SCOPE(vm);
14198 UNUSED_PARAM(throwScope);
14199 UNUSED_PARAM(callFrame);
14200 auto& impl = castedThis->wrapped();
14201 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
14202 InspectorCanvasCallTracer::recordAction(impl, "createBuffer"_s);
14203 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLInterface<WebGLBuffer>>(*lexicalGlobalObject, *castedThis->globalObject(), throwScope, impl.createBuffer())));
14204}
14205
14206JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_createBuffer, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
14207{
14208 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_createBufferBody>(*lexicalGlobalObject, *callFrame, "createBuffer");
14209}
14210
14211#endif
14212
14213#if ENABLE(WEBGL)
14214static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_createFramebufferBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
14215{
14216 auto& vm = JSC::getVM(lexicalGlobalObject);
14217 auto throwScope = DECLARE_THROW_SCOPE(vm);
14218 UNUSED_PARAM(throwScope);
14219 UNUSED_PARAM(callFrame);
14220 auto& impl = castedThis->wrapped();
14221 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
14222 InspectorCanvasCallTracer::recordAction(impl, "createFramebuffer"_s);
14223 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLInterface<WebGLFramebuffer>>(*lexicalGlobalObject, *castedThis->globalObject(), throwScope, impl.createFramebuffer())));
14224}
14225
14226JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_createFramebuffer, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
14227{
14228 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_createFramebufferBody>(*lexicalGlobalObject, *callFrame, "createFramebuffer");
14229}
14230
14231#endif
14232
14233#if ENABLE(WEBGL)
14234static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_createProgramBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
14235{
14236 auto& vm = JSC::getVM(lexicalGlobalObject);
14237 auto throwScope = DECLARE_THROW_SCOPE(vm);
14238 UNUSED_PARAM(throwScope);
14239 UNUSED_PARAM(callFrame);
14240 auto& impl = castedThis->wrapped();
14241 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
14242 InspectorCanvasCallTracer::recordAction(impl, "createProgram"_s);
14243 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLInterface<WebGLProgram>>(*lexicalGlobalObject, *castedThis->globalObject(), throwScope, impl.createProgram())));
14244}
14245
14246JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_createProgram, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
14247{
14248 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_createProgramBody>(*lexicalGlobalObject, *callFrame, "createProgram");
14249}
14250
14251#endif
14252
14253#if ENABLE(WEBGL)
14254static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_createRenderbufferBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
14255{
14256 auto& vm = JSC::getVM(lexicalGlobalObject);
14257 auto throwScope = DECLARE_THROW_SCOPE(vm);
14258 UNUSED_PARAM(throwScope);
14259 UNUSED_PARAM(callFrame);
14260 auto& impl = castedThis->wrapped();
14261 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
14262 InspectorCanvasCallTracer::recordAction(impl, "createRenderbuffer"_s);
14263 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLInterface<WebGLRenderbuffer>>(*lexicalGlobalObject, *castedThis->globalObject(), throwScope, impl.createRenderbuffer())));
14264}
14265
14266JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_createRenderbuffer, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
14267{
14268 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_createRenderbufferBody>(*lexicalGlobalObject, *callFrame, "createRenderbuffer");
14269}
14270
14271#endif
14272
14273#if ENABLE(WEBGL)
14274static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_createShaderBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
14275{
14276 auto& vm = JSC::getVM(lexicalGlobalObject);
14277 auto throwScope = DECLARE_THROW_SCOPE(vm);
14278 UNUSED_PARAM(throwScope);
14279 UNUSED_PARAM(callFrame);
14280 auto& impl = castedThis->wrapped();
14281 if (UNLIKELY(callFrame->argumentCount() < 1))
14282 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
14283 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
14284 auto type = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
14285 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14286 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
14287 InspectorCanvasCallTracer::recordAction(impl, "createShader"_s, { InspectorCanvasCallTracer::processArgument(impl, type) });
14288 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLInterface<WebGLShader>>(*lexicalGlobalObject, *castedThis->globalObject(), throwScope, impl.createShader(WTFMove(type)))));
14289}
14290
14291JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_createShader, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
14292{
14293 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_createShaderBody>(*lexicalGlobalObject, *callFrame, "createShader");
14294}
14295
14296#endif
14297
14298#if ENABLE(WEBGL)
14299static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_createTextureBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
14300{
14301 auto& vm = JSC::getVM(lexicalGlobalObject);
14302 auto throwScope = DECLARE_THROW_SCOPE(vm);
14303 UNUSED_PARAM(throwScope);
14304 UNUSED_PARAM(callFrame);
14305 auto& impl = castedThis->wrapped();
14306 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
14307 InspectorCanvasCallTracer::recordAction(impl, "createTexture"_s);
14308 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLInterface<WebGLTexture>>(*lexicalGlobalObject, *castedThis->globalObject(), throwScope, impl.createTexture())));
14309}
14310
14311JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_createTexture, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
14312{
14313 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_createTextureBody>(*lexicalGlobalObject, *callFrame, "createTexture");
14314}
14315
14316#endif
14317
14318#if ENABLE(WEBGL)
14319static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_cullFaceBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
14320{
14321 auto& vm = JSC::getVM(lexicalGlobalObject);
14322 auto throwScope = DECLARE_THROW_SCOPE(vm);
14323 UNUSED_PARAM(throwScope);
14324 UNUSED_PARAM(callFrame);
14325 auto& impl = castedThis->wrapped();
14326 if (UNLIKELY(callFrame->argumentCount() < 1))
14327 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
14328 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
14329 auto mode = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
14330 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14331 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
14332 InspectorCanvasCallTracer::recordAction(impl, "cullFace"_s, { InspectorCanvasCallTracer::processArgument(impl, mode) });
14333 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.cullFace(WTFMove(mode)); })));
14334}
14335
14336JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_cullFace, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
14337{
14338 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_cullFaceBody>(*lexicalGlobalObject, *callFrame, "cullFace");
14339}
14340
14341#endif
14342
14343#if ENABLE(WEBGL)
14344static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_deleteBufferBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
14345{
14346 auto& vm = JSC::getVM(lexicalGlobalObject);
14347 auto throwScope = DECLARE_THROW_SCOPE(vm);
14348 UNUSED_PARAM(throwScope);
14349 UNUSED_PARAM(callFrame);
14350 auto& impl = castedThis->wrapped();
14351 if (UNLIKELY(callFrame->argumentCount() < 1))
14352 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
14353 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
14354 auto buffer = convert<IDLNullable<IDLInterface<WebGLBuffer>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "buffer", "WebGL2RenderingContext", "deleteBuffer", "WebGLBuffer"); });
14355 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14356 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
14357 InspectorCanvasCallTracer::recordAction(impl, "deleteBuffer"_s, { InspectorCanvasCallTracer::processArgument(impl, buffer) });
14358 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.deleteBuffer(WTFMove(buffer)); })));
14359}
14360
14361JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_deleteBuffer, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
14362{
14363 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_deleteBufferBody>(*lexicalGlobalObject, *callFrame, "deleteBuffer");
14364}
14365
14366#endif
14367
14368#if ENABLE(WEBGL)
14369static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_deleteFramebufferBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
14370{
14371 auto& vm = JSC::getVM(lexicalGlobalObject);
14372 auto throwScope = DECLARE_THROW_SCOPE(vm);
14373 UNUSED_PARAM(throwScope);
14374 UNUSED_PARAM(callFrame);
14375 auto& impl = castedThis->wrapped();
14376 if (UNLIKELY(callFrame->argumentCount() < 1))
14377 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
14378 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
14379 auto framebuffer = convert<IDLNullable<IDLInterface<WebGLFramebuffer>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "framebuffer", "WebGL2RenderingContext", "deleteFramebuffer", "WebGLFramebuffer"); });
14380 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14381 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
14382 InspectorCanvasCallTracer::recordAction(impl, "deleteFramebuffer"_s, { InspectorCanvasCallTracer::processArgument(impl, framebuffer) });
14383 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.deleteFramebuffer(WTFMove(framebuffer)); })));
14384}
14385
14386JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_deleteFramebuffer, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
14387{
14388 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_deleteFramebufferBody>(*lexicalGlobalObject, *callFrame, "deleteFramebuffer");
14389}
14390
14391#endif
14392
14393#if ENABLE(WEBGL)
14394static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_deleteProgramBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
14395{
14396 auto& vm = JSC::getVM(lexicalGlobalObject);
14397 auto throwScope = DECLARE_THROW_SCOPE(vm);
14398 UNUSED_PARAM(throwScope);
14399 UNUSED_PARAM(callFrame);
14400 auto& impl = castedThis->wrapped();
14401 if (UNLIKELY(callFrame->argumentCount() < 1))
14402 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
14403 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
14404 auto program = convert<IDLNullable<IDLInterface<WebGLProgram>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "program", "WebGL2RenderingContext", "deleteProgram", "WebGLProgram"); });
14405 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14406 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
14407 InspectorCanvasCallTracer::recordAction(impl, "deleteProgram"_s, { InspectorCanvasCallTracer::processArgument(impl, program) });
14408 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.deleteProgram(WTFMove(program)); })));
14409}
14410
14411JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_deleteProgram, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
14412{
14413 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_deleteProgramBody>(*lexicalGlobalObject, *callFrame, "deleteProgram");
14414}
14415
14416#endif
14417
14418#if ENABLE(WEBGL)
14419static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_deleteRenderbufferBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
14420{
14421 auto& vm = JSC::getVM(lexicalGlobalObject);
14422 auto throwScope = DECLARE_THROW_SCOPE(vm);
14423 UNUSED_PARAM(throwScope);
14424 UNUSED_PARAM(callFrame);
14425 auto& impl = castedThis->wrapped();
14426 if (UNLIKELY(callFrame->argumentCount() < 1))
14427 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
14428 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
14429 auto renderbuffer = convert<IDLNullable<IDLInterface<WebGLRenderbuffer>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "renderbuffer", "WebGL2RenderingContext", "deleteRenderbuffer", "WebGLRenderbuffer"); });
14430 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14431 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
14432 InspectorCanvasCallTracer::recordAction(impl, "deleteRenderbuffer"_s, { InspectorCanvasCallTracer::processArgument(impl, renderbuffer) });
14433 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.deleteRenderbuffer(WTFMove(renderbuffer)); })));
14434}
14435
14436JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_deleteRenderbuffer, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
14437{
14438 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_deleteRenderbufferBody>(*lexicalGlobalObject, *callFrame, "deleteRenderbuffer");
14439}
14440
14441#endif
14442
14443#if ENABLE(WEBGL)
14444static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_deleteShaderBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
14445{
14446 auto& vm = JSC::getVM(lexicalGlobalObject);
14447 auto throwScope = DECLARE_THROW_SCOPE(vm);
14448 UNUSED_PARAM(throwScope);
14449 UNUSED_PARAM(callFrame);
14450 auto& impl = castedThis->wrapped();
14451 if (UNLIKELY(callFrame->argumentCount() < 1))
14452 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
14453 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
14454 auto shader = convert<IDLNullable<IDLInterface<WebGLShader>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "shader", "WebGL2RenderingContext", "deleteShader", "WebGLShader"); });
14455 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14456 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
14457 InspectorCanvasCallTracer::recordAction(impl, "deleteShader"_s, { InspectorCanvasCallTracer::processArgument(impl, shader) });
14458 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.deleteShader(WTFMove(shader)); })));
14459}
14460
14461JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_deleteShader, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
14462{
14463 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_deleteShaderBody>(*lexicalGlobalObject, *callFrame, "deleteShader");
14464}
14465
14466#endif
14467
14468#if ENABLE(WEBGL)
14469static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_deleteTextureBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
14470{
14471 auto& vm = JSC::getVM(lexicalGlobalObject);
14472 auto throwScope = DECLARE_THROW_SCOPE(vm);
14473 UNUSED_PARAM(throwScope);
14474 UNUSED_PARAM(callFrame);
14475 auto& impl = castedThis->wrapped();
14476 if (UNLIKELY(callFrame->argumentCount() < 1))
14477 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
14478 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
14479 auto texture = convert<IDLNullable<IDLInterface<WebGLTexture>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "texture", "WebGL2RenderingContext", "deleteTexture", "WebGLTexture"); });
14480 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14481 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
14482 InspectorCanvasCallTracer::recordAction(impl, "deleteTexture"_s, { InspectorCanvasCallTracer::processArgument(impl, texture) });
14483 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.deleteTexture(WTFMove(texture)); })));
14484}
14485
14486JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_deleteTexture, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
14487{
14488 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_deleteTextureBody>(*lexicalGlobalObject, *callFrame, "deleteTexture");
14489}
14490
14491#endif
14492
14493#if ENABLE(WEBGL)
14494static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_depthFuncBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
14495{
14496 auto& vm = JSC::getVM(lexicalGlobalObject);
14497 auto throwScope = DECLARE_THROW_SCOPE(vm);
14498 UNUSED_PARAM(throwScope);
14499 UNUSED_PARAM(callFrame);
14500 auto& impl = castedThis->wrapped();
14501 if (UNLIKELY(callFrame->argumentCount() < 1))
14502 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
14503 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
14504 auto func = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
14505 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14506 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
14507 InspectorCanvasCallTracer::recordAction(impl, "depthFunc"_s, { InspectorCanvasCallTracer::processArgument(impl, func) });
14508 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.depthFunc(WTFMove(func)); })));
14509}
14510
14511JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_depthFunc, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
14512{
14513 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_depthFuncBody>(*lexicalGlobalObject, *callFrame, "depthFunc");
14514}
14515
14516#endif
14517
14518#if ENABLE(WEBGL)
14519static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_depthMaskBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
14520{
14521 auto& vm = JSC::getVM(lexicalGlobalObject);
14522 auto throwScope = DECLARE_THROW_SCOPE(vm);
14523 UNUSED_PARAM(throwScope);
14524 UNUSED_PARAM(callFrame);
14525 auto& impl = castedThis->wrapped();
14526 if (UNLIKELY(callFrame->argumentCount() < 1))
14527 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
14528 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
14529 auto flag = convert<IDLBoolean>(*lexicalGlobalObject, argument0.value());
14530 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14531 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
14532 InspectorCanvasCallTracer::recordAction(impl, "depthMask"_s, { InspectorCanvasCallTracer::processArgument(impl, flag) });
14533 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.depthMask(WTFMove(flag)); })));
14534}
14535
14536JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_depthMask, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
14537{
14538 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_depthMaskBody>(*lexicalGlobalObject, *callFrame, "depthMask");
14539}
14540
14541#endif
14542
14543#if ENABLE(WEBGL)
14544static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_depthRangeBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
14545{
14546 auto& vm = JSC::getVM(lexicalGlobalObject);
14547 auto throwScope = DECLARE_THROW_SCOPE(vm);
14548 UNUSED_PARAM(throwScope);
14549 UNUSED_PARAM(callFrame);
14550 auto& impl = castedThis->wrapped();
14551 if (UNLIKELY(callFrame->argumentCount() < 2))
14552 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
14553 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
14554 auto zNear = convert<IDLUnrestrictedFloat>(*lexicalGlobalObject, argument0.value());
14555 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14556 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
14557 auto zFar = convert<IDLUnrestrictedFloat>(*lexicalGlobalObject, argument1.value());
14558 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14559 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
14560 InspectorCanvasCallTracer::recordAction(impl, "depthRange"_s, { InspectorCanvasCallTracer::processArgument(impl, zNear), InspectorCanvasCallTracer::processArgument(impl, zFar) });
14561 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.depthRange(WTFMove(zNear), WTFMove(zFar)); })));
14562}
14563
14564JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_depthRange, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
14565{
14566 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_depthRangeBody>(*lexicalGlobalObject, *callFrame, "depthRange");
14567}
14568
14569#endif
14570
14571#if ENABLE(WEBGL)
14572static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_detachShaderBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
14573{
14574 auto& vm = JSC::getVM(lexicalGlobalObject);
14575 auto throwScope = DECLARE_THROW_SCOPE(vm);
14576 UNUSED_PARAM(throwScope);
14577 UNUSED_PARAM(callFrame);
14578 auto& impl = castedThis->wrapped();
14579 if (UNLIKELY(callFrame->argumentCount() < 2))
14580 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
14581 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
14582 auto program = convert<IDLInterface<WebGLProgram>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "program", "WebGL2RenderingContext", "detachShader", "WebGLProgram"); });
14583 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14584 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
14585 auto shader = convert<IDLInterface<WebGLShader>>(*lexicalGlobalObject, argument1.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 1, "shader", "WebGL2RenderingContext", "detachShader", "WebGLShader"); });
14586 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14587 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
14588 InspectorCanvasCallTracer::recordAction(impl, "detachShader"_s, { InspectorCanvasCallTracer::processArgument(impl, program), InspectorCanvasCallTracer::processArgument(impl, shader) });
14589 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.detachShader(*program, *shader); })));
14590}
14591
14592JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_detachShader, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
14593{
14594 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_detachShaderBody>(*lexicalGlobalObject, *callFrame, "detachShader");
14595}
14596
14597#endif
14598
14599#if ENABLE(WEBGL)
14600static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_disableBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
14601{
14602 auto& vm = JSC::getVM(lexicalGlobalObject);
14603 auto throwScope = DECLARE_THROW_SCOPE(vm);
14604 UNUSED_PARAM(throwScope);
14605 UNUSED_PARAM(callFrame);
14606 auto& impl = castedThis->wrapped();
14607 if (UNLIKELY(callFrame->argumentCount() < 1))
14608 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
14609 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
14610 auto cap = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
14611 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14612 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
14613 InspectorCanvasCallTracer::recordAction(impl, "disable"_s, { InspectorCanvasCallTracer::processArgument(impl, cap) });
14614 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.disable(WTFMove(cap)); })));
14615}
14616
14617JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_disable, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
14618{
14619 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_disableBody>(*lexicalGlobalObject, *callFrame, "disable");
14620}
14621
14622#endif
14623
14624#if ENABLE(WEBGL)
14625static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_disableVertexAttribArrayBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
14626{
14627 auto& vm = JSC::getVM(lexicalGlobalObject);
14628 auto throwScope = DECLARE_THROW_SCOPE(vm);
14629 UNUSED_PARAM(throwScope);
14630 UNUSED_PARAM(callFrame);
14631 auto& impl = castedThis->wrapped();
14632 if (UNLIKELY(callFrame->argumentCount() < 1))
14633 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
14634 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
14635 auto index = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
14636 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14637 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
14638 InspectorCanvasCallTracer::recordAction(impl, "disableVertexAttribArray"_s, { InspectorCanvasCallTracer::processArgument(impl, index) });
14639 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.disableVertexAttribArray(WTFMove(index)); })));
14640}
14641
14642JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_disableVertexAttribArray, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
14643{
14644 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_disableVertexAttribArrayBody>(*lexicalGlobalObject, *callFrame, "disableVertexAttribArray");
14645}
14646
14647#endif
14648
14649#if ENABLE(WEBGL)
14650static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_drawArraysBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
14651{
14652 auto& vm = JSC::getVM(lexicalGlobalObject);
14653 auto throwScope = DECLARE_THROW_SCOPE(vm);
14654 UNUSED_PARAM(throwScope);
14655 UNUSED_PARAM(callFrame);
14656 auto& impl = castedThis->wrapped();
14657 if (UNLIKELY(callFrame->argumentCount() < 3))
14658 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
14659 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
14660 auto mode = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
14661 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14662 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
14663 auto first = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
14664 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14665 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
14666 auto count = convert<IDLLong>(*lexicalGlobalObject, argument2.value());
14667 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14668 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
14669 InspectorCanvasCallTracer::recordAction(impl, "drawArrays"_s, { InspectorCanvasCallTracer::processArgument(impl, mode), InspectorCanvasCallTracer::processArgument(impl, first), InspectorCanvasCallTracer::processArgument(impl, count) });
14670 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.drawArrays(WTFMove(mode), WTFMove(first), WTFMove(count)); })));
14671}
14672
14673JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_drawArrays, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
14674{
14675 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_drawArraysBody>(*lexicalGlobalObject, *callFrame, "drawArrays");
14676}
14677
14678#endif
14679
14680#if ENABLE(WEBGL)
14681static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_drawElementsBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
14682{
14683 auto& vm = JSC::getVM(lexicalGlobalObject);
14684 auto throwScope = DECLARE_THROW_SCOPE(vm);
14685 UNUSED_PARAM(throwScope);
14686 UNUSED_PARAM(callFrame);
14687 auto& impl = castedThis->wrapped();
14688 if (UNLIKELY(callFrame->argumentCount() < 4))
14689 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
14690 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
14691 auto mode = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
14692 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14693 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
14694 auto count = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
14695 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14696 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
14697 auto type = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
14698 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14699 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
14700 auto offset = convert<IDLLongLong>(*lexicalGlobalObject, argument3.value());
14701 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14702 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
14703 InspectorCanvasCallTracer::recordAction(impl, "drawElements"_s, { InspectorCanvasCallTracer::processArgument(impl, mode), InspectorCanvasCallTracer::processArgument(impl, count), InspectorCanvasCallTracer::processArgument(impl, type), InspectorCanvasCallTracer::processArgument(impl, offset) });
14704 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.drawElements(WTFMove(mode), WTFMove(count), WTFMove(type), WTFMove(offset)); })));
14705}
14706
14707JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_drawElements, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
14708{
14709 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_drawElementsBody>(*lexicalGlobalObject, *callFrame, "drawElements");
14710}
14711
14712#endif
14713
14714#if ENABLE(WEBGL)
14715static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_enableBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
14716{
14717 auto& vm = JSC::getVM(lexicalGlobalObject);
14718 auto throwScope = DECLARE_THROW_SCOPE(vm);
14719 UNUSED_PARAM(throwScope);
14720 UNUSED_PARAM(callFrame);
14721 auto& impl = castedThis->wrapped();
14722 if (UNLIKELY(callFrame->argumentCount() < 1))
14723 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
14724 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
14725 auto cap = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
14726 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14727 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
14728 InspectorCanvasCallTracer::recordAction(impl, "enable"_s, { InspectorCanvasCallTracer::processArgument(impl, cap) });
14729 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.enable(WTFMove(cap)); })));
14730}
14731
14732JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_enable, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
14733{
14734 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_enableBody>(*lexicalGlobalObject, *callFrame, "enable");
14735}
14736
14737#endif
14738
14739#if ENABLE(WEBGL)
14740static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_enableVertexAttribArrayBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
14741{
14742 auto& vm = JSC::getVM(lexicalGlobalObject);
14743 auto throwScope = DECLARE_THROW_SCOPE(vm);
14744 UNUSED_PARAM(throwScope);
14745 UNUSED_PARAM(callFrame);
14746 auto& impl = castedThis->wrapped();
14747 if (UNLIKELY(callFrame->argumentCount() < 1))
14748 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
14749 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
14750 auto index = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
14751 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14752 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
14753 InspectorCanvasCallTracer::recordAction(impl, "enableVertexAttribArray"_s, { InspectorCanvasCallTracer::processArgument(impl, index) });
14754 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.enableVertexAttribArray(WTFMove(index)); })));
14755}
14756
14757JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_enableVertexAttribArray, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
14758{
14759 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_enableVertexAttribArrayBody>(*lexicalGlobalObject, *callFrame, "enableVertexAttribArray");
14760}
14761
14762#endif
14763
14764#if ENABLE(WEBGL)
14765static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_finishBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
14766{
14767 auto& vm = JSC::getVM(lexicalGlobalObject);
14768 auto throwScope = DECLARE_THROW_SCOPE(vm);
14769 UNUSED_PARAM(throwScope);
14770 UNUSED_PARAM(callFrame);
14771 auto& impl = castedThis->wrapped();
14772 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
14773 InspectorCanvasCallTracer::recordAction(impl, "finish"_s);
14774 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.finish(); })));
14775}
14776
14777JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_finish, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
14778{
14779 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_finishBody>(*lexicalGlobalObject, *callFrame, "finish");
14780}
14781
14782#endif
14783
14784#if ENABLE(WEBGL)
14785static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_flushBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
14786{
14787 auto& vm = JSC::getVM(lexicalGlobalObject);
14788 auto throwScope = DECLARE_THROW_SCOPE(vm);
14789 UNUSED_PARAM(throwScope);
14790 UNUSED_PARAM(callFrame);
14791 auto& impl = castedThis->wrapped();
14792 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
14793 InspectorCanvasCallTracer::recordAction(impl, "flush"_s);
14794 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.flush(); })));
14795}
14796
14797JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_flush, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
14798{
14799 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_flushBody>(*lexicalGlobalObject, *callFrame, "flush");
14800}
14801
14802#endif
14803
14804#if ENABLE(WEBGL)
14805static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_framebufferRenderbufferBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
14806{
14807 auto& vm = JSC::getVM(lexicalGlobalObject);
14808 auto throwScope = DECLARE_THROW_SCOPE(vm);
14809 UNUSED_PARAM(throwScope);
14810 UNUSED_PARAM(callFrame);
14811 auto& impl = castedThis->wrapped();
14812 if (UNLIKELY(callFrame->argumentCount() < 4))
14813 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
14814 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
14815 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
14816 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14817 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
14818 auto attachment = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
14819 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14820 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
14821 auto renderbuffertarget = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
14822 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14823 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
14824 auto renderbuffer = convert<IDLNullable<IDLInterface<WebGLRenderbuffer>>>(*lexicalGlobalObject, argument3.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 3, "renderbuffer", "WebGL2RenderingContext", "framebufferRenderbuffer", "WebGLRenderbuffer"); });
14825 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14826 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
14827 InspectorCanvasCallTracer::recordAction(impl, "framebufferRenderbuffer"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, attachment), InspectorCanvasCallTracer::processArgument(impl, renderbuffertarget), InspectorCanvasCallTracer::processArgument(impl, renderbuffer) });
14828 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.framebufferRenderbuffer(WTFMove(target), WTFMove(attachment), WTFMove(renderbuffertarget), WTFMove(renderbuffer)); })));
14829}
14830
14831JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_framebufferRenderbuffer, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
14832{
14833 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_framebufferRenderbufferBody>(*lexicalGlobalObject, *callFrame, "framebufferRenderbuffer");
14834}
14835
14836#endif
14837
14838#if ENABLE(WEBGL)
14839static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_framebufferTexture2DBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
14840{
14841 auto& vm = JSC::getVM(lexicalGlobalObject);
14842 auto throwScope = DECLARE_THROW_SCOPE(vm);
14843 UNUSED_PARAM(throwScope);
14844 UNUSED_PARAM(callFrame);
14845 auto& impl = castedThis->wrapped();
14846 if (UNLIKELY(callFrame->argumentCount() < 5))
14847 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
14848 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
14849 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
14850 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14851 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
14852 auto attachment = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
14853 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14854 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
14855 auto textarget = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
14856 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14857 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
14858 auto texture = convert<IDLNullable<IDLInterface<WebGLTexture>>>(*lexicalGlobalObject, argument3.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 3, "texture", "WebGL2RenderingContext", "framebufferTexture2D", "WebGLTexture"); });
14859 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14860 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
14861 auto level = convert<IDLLong>(*lexicalGlobalObject, argument4.value());
14862 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14863 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
14864 InspectorCanvasCallTracer::recordAction(impl, "framebufferTexture2D"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, attachment), InspectorCanvasCallTracer::processArgument(impl, textarget), InspectorCanvasCallTracer::processArgument(impl, texture), InspectorCanvasCallTracer::processArgument(impl, level) });
14865 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.framebufferTexture2D(WTFMove(target), WTFMove(attachment), WTFMove(textarget), WTFMove(texture), WTFMove(level)); })));
14866}
14867
14868JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_framebufferTexture2D, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
14869{
14870 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_framebufferTexture2DBody>(*lexicalGlobalObject, *callFrame, "framebufferTexture2D");
14871}
14872
14873#endif
14874
14875#if ENABLE(WEBGL)
14876static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_frontFaceBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
14877{
14878 auto& vm = JSC::getVM(lexicalGlobalObject);
14879 auto throwScope = DECLARE_THROW_SCOPE(vm);
14880 UNUSED_PARAM(throwScope);
14881 UNUSED_PARAM(callFrame);
14882 auto& impl = castedThis->wrapped();
14883 if (UNLIKELY(callFrame->argumentCount() < 1))
14884 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
14885 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
14886 auto mode = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
14887 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14888 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
14889 InspectorCanvasCallTracer::recordAction(impl, "frontFace"_s, { InspectorCanvasCallTracer::processArgument(impl, mode) });
14890 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.frontFace(WTFMove(mode)); })));
14891}
14892
14893JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_frontFace, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
14894{
14895 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_frontFaceBody>(*lexicalGlobalObject, *callFrame, "frontFace");
14896}
14897
14898#endif
14899
14900#if ENABLE(WEBGL)
14901static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_generateMipmapBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
14902{
14903 auto& vm = JSC::getVM(lexicalGlobalObject);
14904 auto throwScope = DECLARE_THROW_SCOPE(vm);
14905 UNUSED_PARAM(throwScope);
14906 UNUSED_PARAM(callFrame);
14907 auto& impl = castedThis->wrapped();
14908 if (UNLIKELY(callFrame->argumentCount() < 1))
14909 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
14910 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
14911 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
14912 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14913 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
14914 InspectorCanvasCallTracer::recordAction(impl, "generateMipmap"_s, { InspectorCanvasCallTracer::processArgument(impl, target) });
14915 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.generateMipmap(WTFMove(target)); })));
14916}
14917
14918JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_generateMipmap, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
14919{
14920 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_generateMipmapBody>(*lexicalGlobalObject, *callFrame, "generateMipmap");
14921}
14922
14923#endif
14924
14925#if ENABLE(WEBGL)
14926static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_getActiveAttribBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
14927{
14928 auto& vm = JSC::getVM(lexicalGlobalObject);
14929 auto throwScope = DECLARE_THROW_SCOPE(vm);
14930 UNUSED_PARAM(throwScope);
14931 UNUSED_PARAM(callFrame);
14932 auto& impl = castedThis->wrapped();
14933 if (UNLIKELY(callFrame->argumentCount() < 2))
14934 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
14935 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
14936 auto program = convert<IDLInterface<WebGLProgram>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "program", "WebGL2RenderingContext", "getActiveAttrib", "WebGLProgram"); });
14937 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14938 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
14939 auto index = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
14940 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14941 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
14942 InspectorCanvasCallTracer::recordAction(impl, "getActiveAttrib"_s, { InspectorCanvasCallTracer::processArgument(impl, program), InspectorCanvasCallTracer::processArgument(impl, index) });
14943 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLInterface<WebGLActiveInfo>>(*lexicalGlobalObject, *castedThis->globalObject(), throwScope, impl.getActiveAttrib(*program, WTFMove(index)))));
14944}
14945
14946JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getActiveAttrib, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
14947{
14948 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_getActiveAttribBody>(*lexicalGlobalObject, *callFrame, "getActiveAttrib");
14949}
14950
14951#endif
14952
14953#if ENABLE(WEBGL)
14954static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_getActiveUniformBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
14955{
14956 auto& vm = JSC::getVM(lexicalGlobalObject);
14957 auto throwScope = DECLARE_THROW_SCOPE(vm);
14958 UNUSED_PARAM(throwScope);
14959 UNUSED_PARAM(callFrame);
14960 auto& impl = castedThis->wrapped();
14961 if (UNLIKELY(callFrame->argumentCount() < 2))
14962 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
14963 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
14964 auto program = convert<IDLInterface<WebGLProgram>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "program", "WebGL2RenderingContext", "getActiveUniform", "WebGLProgram"); });
14965 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14966 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
14967 auto index = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
14968 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14969 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
14970 InspectorCanvasCallTracer::recordAction(impl, "getActiveUniform"_s, { InspectorCanvasCallTracer::processArgument(impl, program), InspectorCanvasCallTracer::processArgument(impl, index) });
14971 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLInterface<WebGLActiveInfo>>(*lexicalGlobalObject, *castedThis->globalObject(), throwScope, impl.getActiveUniform(*program, WTFMove(index)))));
14972}
14973
14974JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getActiveUniform, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
14975{
14976 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_getActiveUniformBody>(*lexicalGlobalObject, *callFrame, "getActiveUniform");
14977}
14978
14979#endif
14980
14981#if ENABLE(WEBGL)
14982static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_getAttachedShadersBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
14983{
14984 auto& vm = JSC::getVM(lexicalGlobalObject);
14985 auto throwScope = DECLARE_THROW_SCOPE(vm);
14986 UNUSED_PARAM(throwScope);
14987 UNUSED_PARAM(callFrame);
14988 auto& impl = castedThis->wrapped();
14989 if (UNLIKELY(callFrame->argumentCount() < 1))
14990 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
14991 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
14992 auto program = convert<IDLInterface<WebGLProgram>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "program", "WebGL2RenderingContext", "getAttachedShaders", "WebGLProgram"); });
14993 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
14994 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
14995 InspectorCanvasCallTracer::recordAction(impl, "getAttachedShaders"_s, { InspectorCanvasCallTracer::processArgument(impl, program) });
14996 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLNullable<IDLSequence<IDLInterface<WebGLShader>>>>(*lexicalGlobalObject, *castedThis->globalObject(), throwScope, impl.getAttachedShaders(*program))));
14997}
14998
14999JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getAttachedShaders, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
15000{
15001 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_getAttachedShadersBody>(*lexicalGlobalObject, *callFrame, "getAttachedShaders");
15002}
15003
15004#endif
15005
15006#if ENABLE(WEBGL)
15007static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_getAttribLocationBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
15008{
15009 auto& vm = JSC::getVM(lexicalGlobalObject);
15010 auto throwScope = DECLARE_THROW_SCOPE(vm);
15011 UNUSED_PARAM(throwScope);
15012 UNUSED_PARAM(callFrame);
15013 auto& impl = castedThis->wrapped();
15014 if (UNLIKELY(callFrame->argumentCount() < 2))
15015 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
15016 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
15017 auto program = convert<IDLInterface<WebGLProgram>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "program", "WebGL2RenderingContext", "getAttribLocation", "WebGLProgram"); });
15018 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15019 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
15020 auto name = convert<IDLDOMString>(*lexicalGlobalObject, argument1.value());
15021 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15022 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
15023 InspectorCanvasCallTracer::recordAction(impl, "getAttribLocation"_s, { InspectorCanvasCallTracer::processArgument(impl, program), InspectorCanvasCallTracer::processArgument(impl, name) });
15024 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLLong>(*lexicalGlobalObject, throwScope, impl.getAttribLocation(*program, WTFMove(name)))));
15025}
15026
15027JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getAttribLocation, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
15028{
15029 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_getAttribLocationBody>(*lexicalGlobalObject, *callFrame, "getAttribLocation");
15030}
15031
15032#endif
15033
15034#if ENABLE(WEBGL)
15035static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_getBufferParameterBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
15036{
15037 auto& vm = JSC::getVM(lexicalGlobalObject);
15038 auto throwScope = DECLARE_THROW_SCOPE(vm);
15039 UNUSED_PARAM(throwScope);
15040 UNUSED_PARAM(callFrame);
15041 auto& impl = castedThis->wrapped();
15042 if (UNLIKELY(callFrame->argumentCount() < 2))
15043 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
15044 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
15045 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
15046 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15047 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
15048 auto pname = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
15049 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15050 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
15051 InspectorCanvasCallTracer::recordAction(impl, "getBufferParameter"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, pname) });
15052 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLWebGLAny>(*lexicalGlobalObject, *castedThis->globalObject(), throwScope, impl.getBufferParameter(WTFMove(target), WTFMove(pname)))));
15053}
15054
15055JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getBufferParameter, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
15056{
15057 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_getBufferParameterBody>(*lexicalGlobalObject, *callFrame, "getBufferParameter");
15058}
15059
15060#endif
15061
15062#if ENABLE(WEBGL)
15063static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_getContextAttributesBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
15064{
15065 auto& vm = JSC::getVM(lexicalGlobalObject);
15066 auto throwScope = DECLARE_THROW_SCOPE(vm);
15067 UNUSED_PARAM(throwScope);
15068 UNUSED_PARAM(callFrame);
15069 auto& impl = castedThis->wrapped();
15070 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
15071 InspectorCanvasCallTracer::recordAction(impl, "getContextAttributes"_s);
15072 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLNullable<IDLDictionary<WebGLContextAttributes>>>(*lexicalGlobalObject, *castedThis->globalObject(), throwScope, impl.getContextAttributes())));
15073}
15074
15075JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getContextAttributes, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
15076{
15077 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_getContextAttributesBody>(*lexicalGlobalObject, *callFrame, "getContextAttributes");
15078}
15079
15080#endif
15081
15082#if ENABLE(WEBGL)
15083static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_getErrorBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
15084{
15085 auto& vm = JSC::getVM(lexicalGlobalObject);
15086 auto throwScope = DECLARE_THROW_SCOPE(vm);
15087 UNUSED_PARAM(throwScope);
15088 UNUSED_PARAM(callFrame);
15089 auto& impl = castedThis->wrapped();
15090 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
15091 InspectorCanvasCallTracer::recordAction(impl, "getError"_s);
15092 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUnsignedLong>(*lexicalGlobalObject, throwScope, impl.getError())));
15093}
15094
15095JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getError, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
15096{
15097 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_getErrorBody>(*lexicalGlobalObject, *callFrame, "getError");
15098}
15099
15100#endif
15101
15102#if ENABLE(WEBGL)
15103static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_getSupportedExtensionsBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
15104{
15105 auto& vm = JSC::getVM(lexicalGlobalObject);
15106 auto throwScope = DECLARE_THROW_SCOPE(vm);
15107 UNUSED_PARAM(throwScope);
15108 UNUSED_PARAM(callFrame);
15109 auto& impl = castedThis->wrapped();
15110 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
15111 InspectorCanvasCallTracer::recordAction(impl, "getSupportedExtensions"_s);
15112 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLNullable<IDLSequence<IDLDOMString>>>(*lexicalGlobalObject, *castedThis->globalObject(), throwScope, impl.getSupportedExtensions())));
15113}
15114
15115JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getSupportedExtensions, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
15116{
15117 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_getSupportedExtensionsBody>(*lexicalGlobalObject, *callFrame, "getSupportedExtensions");
15118}
15119
15120#endif
15121
15122#if ENABLE(WEBGL)
15123static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_getExtensionBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
15124{
15125 auto& vm = JSC::getVM(lexicalGlobalObject);
15126 auto throwScope = DECLARE_THROW_SCOPE(vm);
15127 UNUSED_PARAM(throwScope);
15128 UNUSED_PARAM(callFrame);
15129 auto& impl = castedThis->wrapped();
15130 if (UNLIKELY(callFrame->argumentCount() < 1))
15131 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
15132 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
15133 auto name = convert<IDLDOMString>(*lexicalGlobalObject, argument0.value());
15134 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15135 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
15136 InspectorCanvasCallTracer::recordAction(impl, "getExtension"_s, { InspectorCanvasCallTracer::processArgument(impl, name) });
15137 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLNullable<IDLWebGLExtension>>(*lexicalGlobalObject, *castedThis->globalObject(), throwScope, impl.getExtension(WTFMove(name)))));
15138}
15139
15140JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getExtension, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
15141{
15142 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_getExtensionBody>(*lexicalGlobalObject, *callFrame, "getExtension");
15143}
15144
15145#endif
15146
15147#if ENABLE(WEBGL)
15148static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_getFramebufferAttachmentParameterBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
15149{
15150 auto& vm = JSC::getVM(lexicalGlobalObject);
15151 auto throwScope = DECLARE_THROW_SCOPE(vm);
15152 UNUSED_PARAM(throwScope);
15153 UNUSED_PARAM(callFrame);
15154 auto& impl = castedThis->wrapped();
15155 if (UNLIKELY(callFrame->argumentCount() < 3))
15156 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
15157 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
15158 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
15159 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15160 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
15161 auto attachment = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
15162 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15163 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
15164 auto pname = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
15165 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15166 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
15167 InspectorCanvasCallTracer::recordAction(impl, "getFramebufferAttachmentParameter"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, attachment), InspectorCanvasCallTracer::processArgument(impl, pname) });
15168 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLWebGLAny>(*lexicalGlobalObject, *castedThis->globalObject(), throwScope, impl.getFramebufferAttachmentParameter(WTFMove(target), WTFMove(attachment), WTFMove(pname)))));
15169}
15170
15171JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getFramebufferAttachmentParameter, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
15172{
15173 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_getFramebufferAttachmentParameterBody>(*lexicalGlobalObject, *callFrame, "getFramebufferAttachmentParameter");
15174}
15175
15176#endif
15177
15178#if ENABLE(WEBGL)
15179static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_getParameterBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
15180{
15181 auto& vm = JSC::getVM(lexicalGlobalObject);
15182 auto throwScope = DECLARE_THROW_SCOPE(vm);
15183 UNUSED_PARAM(throwScope);
15184 UNUSED_PARAM(callFrame);
15185 auto& impl = castedThis->wrapped();
15186 if (UNLIKELY(callFrame->argumentCount() < 1))
15187 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
15188 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
15189 auto pname = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
15190 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15191 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
15192 InspectorCanvasCallTracer::recordAction(impl, "getParameter"_s, { InspectorCanvasCallTracer::processArgument(impl, pname) });
15193 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLWebGLAny>(*lexicalGlobalObject, *castedThis->globalObject(), throwScope, impl.getParameter(WTFMove(pname)))));
15194}
15195
15196JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getParameter, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
15197{
15198 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_getParameterBody>(*lexicalGlobalObject, *callFrame, "getParameter");
15199}
15200
15201#endif
15202
15203#if ENABLE(WEBGL)
15204static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_getProgramParameterBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
15205{
15206 auto& vm = JSC::getVM(lexicalGlobalObject);
15207 auto throwScope = DECLARE_THROW_SCOPE(vm);
15208 UNUSED_PARAM(throwScope);
15209 UNUSED_PARAM(callFrame);
15210 auto& impl = castedThis->wrapped();
15211 if (UNLIKELY(callFrame->argumentCount() < 2))
15212 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
15213 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
15214 auto program = convert<IDLInterface<WebGLProgram>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "program", "WebGL2RenderingContext", "getProgramParameter", "WebGLProgram"); });
15215 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15216 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
15217 auto pname = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
15218 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15219 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
15220 InspectorCanvasCallTracer::recordAction(impl, "getProgramParameter"_s, { InspectorCanvasCallTracer::processArgument(impl, program), InspectorCanvasCallTracer::processArgument(impl, pname) });
15221 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLWebGLAny>(*lexicalGlobalObject, *castedThis->globalObject(), throwScope, impl.getProgramParameter(*program, WTFMove(pname)))));
15222}
15223
15224JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getProgramParameter, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
15225{
15226 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_getProgramParameterBody>(*lexicalGlobalObject, *callFrame, "getProgramParameter");
15227}
15228
15229#endif
15230
15231#if ENABLE(WEBGL)
15232static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_getProgramInfoLogBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
15233{
15234 auto& vm = JSC::getVM(lexicalGlobalObject);
15235 auto throwScope = DECLARE_THROW_SCOPE(vm);
15236 UNUSED_PARAM(throwScope);
15237 UNUSED_PARAM(callFrame);
15238 auto& impl = castedThis->wrapped();
15239 if (UNLIKELY(callFrame->argumentCount() < 1))
15240 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
15241 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
15242 auto program = convert<IDLInterface<WebGLProgram>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "program", "WebGL2RenderingContext", "getProgramInfoLog", "WebGLProgram"); });
15243 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15244 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
15245 InspectorCanvasCallTracer::recordAction(impl, "getProgramInfoLog"_s, { InspectorCanvasCallTracer::processArgument(impl, program) });
15246 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLNullable<IDLDOMString>>(*lexicalGlobalObject, throwScope, impl.getProgramInfoLog(*program))));
15247}
15248
15249JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getProgramInfoLog, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
15250{
15251 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_getProgramInfoLogBody>(*lexicalGlobalObject, *callFrame, "getProgramInfoLog");
15252}
15253
15254#endif
15255
15256#if ENABLE(WEBGL)
15257static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_getRenderbufferParameterBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
15258{
15259 auto& vm = JSC::getVM(lexicalGlobalObject);
15260 auto throwScope = DECLARE_THROW_SCOPE(vm);
15261 UNUSED_PARAM(throwScope);
15262 UNUSED_PARAM(callFrame);
15263 auto& impl = castedThis->wrapped();
15264 if (UNLIKELY(callFrame->argumentCount() < 2))
15265 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
15266 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
15267 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
15268 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15269 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
15270 auto pname = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
15271 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15272 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
15273 InspectorCanvasCallTracer::recordAction(impl, "getRenderbufferParameter"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, pname) });
15274 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLWebGLAny>(*lexicalGlobalObject, *castedThis->globalObject(), throwScope, impl.getRenderbufferParameter(WTFMove(target), WTFMove(pname)))));
15275}
15276
15277JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getRenderbufferParameter, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
15278{
15279 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_getRenderbufferParameterBody>(*lexicalGlobalObject, *callFrame, "getRenderbufferParameter");
15280}
15281
15282#endif
15283
15284#if ENABLE(WEBGL)
15285static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_getShaderParameterBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
15286{
15287 auto& vm = JSC::getVM(lexicalGlobalObject);
15288 auto throwScope = DECLARE_THROW_SCOPE(vm);
15289 UNUSED_PARAM(throwScope);
15290 UNUSED_PARAM(callFrame);
15291 auto& impl = castedThis->wrapped();
15292 if (UNLIKELY(callFrame->argumentCount() < 2))
15293 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
15294 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
15295 auto shader = convert<IDLInterface<WebGLShader>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "shader", "WebGL2RenderingContext", "getShaderParameter", "WebGLShader"); });
15296 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15297 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
15298 auto pname = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
15299 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15300 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
15301 InspectorCanvasCallTracer::recordAction(impl, "getShaderParameter"_s, { InspectorCanvasCallTracer::processArgument(impl, shader), InspectorCanvasCallTracer::processArgument(impl, pname) });
15302 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLWebGLAny>(*lexicalGlobalObject, *castedThis->globalObject(), throwScope, impl.getShaderParameter(*shader, WTFMove(pname)))));
15303}
15304
15305JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getShaderParameter, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
15306{
15307 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_getShaderParameterBody>(*lexicalGlobalObject, *callFrame, "getShaderParameter");
15308}
15309
15310#endif
15311
15312#if ENABLE(WEBGL)
15313static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_getShaderInfoLogBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
15314{
15315 auto& vm = JSC::getVM(lexicalGlobalObject);
15316 auto throwScope = DECLARE_THROW_SCOPE(vm);
15317 UNUSED_PARAM(throwScope);
15318 UNUSED_PARAM(callFrame);
15319 auto& impl = castedThis->wrapped();
15320 if (UNLIKELY(callFrame->argumentCount() < 1))
15321 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
15322 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
15323 auto shader = convert<IDLInterface<WebGLShader>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "shader", "WebGL2RenderingContext", "getShaderInfoLog", "WebGLShader"); });
15324 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15325 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
15326 InspectorCanvasCallTracer::recordAction(impl, "getShaderInfoLog"_s, { InspectorCanvasCallTracer::processArgument(impl, shader) });
15327 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLNullable<IDLDOMString>>(*lexicalGlobalObject, throwScope, impl.getShaderInfoLog(*shader))));
15328}
15329
15330JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getShaderInfoLog, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
15331{
15332 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_getShaderInfoLogBody>(*lexicalGlobalObject, *callFrame, "getShaderInfoLog");
15333}
15334
15335#endif
15336
15337#if ENABLE(WEBGL)
15338static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_getShaderPrecisionFormatBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
15339{
15340 auto& vm = JSC::getVM(lexicalGlobalObject);
15341 auto throwScope = DECLARE_THROW_SCOPE(vm);
15342 UNUSED_PARAM(throwScope);
15343 UNUSED_PARAM(callFrame);
15344 auto& impl = castedThis->wrapped();
15345 if (UNLIKELY(callFrame->argumentCount() < 2))
15346 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
15347 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
15348 auto shadertype = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
15349 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15350 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
15351 auto precisiontype = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
15352 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15353 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
15354 InspectorCanvasCallTracer::recordAction(impl, "getShaderPrecisionFormat"_s, { InspectorCanvasCallTracer::processArgument(impl, shadertype), InspectorCanvasCallTracer::processArgument(impl, precisiontype) });
15355 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLInterface<WebGLShaderPrecisionFormat>>(*lexicalGlobalObject, *castedThis->globalObject(), throwScope, impl.getShaderPrecisionFormat(WTFMove(shadertype), WTFMove(precisiontype)))));
15356}
15357
15358JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getShaderPrecisionFormat, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
15359{
15360 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_getShaderPrecisionFormatBody>(*lexicalGlobalObject, *callFrame, "getShaderPrecisionFormat");
15361}
15362
15363#endif
15364
15365#if ENABLE(WEBGL)
15366static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_getShaderSourceBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
15367{
15368 auto& vm = JSC::getVM(lexicalGlobalObject);
15369 auto throwScope = DECLARE_THROW_SCOPE(vm);
15370 UNUSED_PARAM(throwScope);
15371 UNUSED_PARAM(callFrame);
15372 auto& impl = castedThis->wrapped();
15373 if (UNLIKELY(callFrame->argumentCount() < 1))
15374 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
15375 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
15376 auto shader = convert<IDLInterface<WebGLShader>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "shader", "WebGL2RenderingContext", "getShaderSource", "WebGLShader"); });
15377 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15378 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
15379 InspectorCanvasCallTracer::recordAction(impl, "getShaderSource"_s, { InspectorCanvasCallTracer::processArgument(impl, shader) });
15380 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLNullable<IDLDOMString>>(*lexicalGlobalObject, throwScope, impl.getShaderSource(*shader))));
15381}
15382
15383JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getShaderSource, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
15384{
15385 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_getShaderSourceBody>(*lexicalGlobalObject, *callFrame, "getShaderSource");
15386}
15387
15388#endif
15389
15390#if ENABLE(WEBGL)
15391static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_getTexParameterBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
15392{
15393 auto& vm = JSC::getVM(lexicalGlobalObject);
15394 auto throwScope = DECLARE_THROW_SCOPE(vm);
15395 UNUSED_PARAM(throwScope);
15396 UNUSED_PARAM(callFrame);
15397 auto& impl = castedThis->wrapped();
15398 if (UNLIKELY(callFrame->argumentCount() < 2))
15399 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
15400 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
15401 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
15402 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15403 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
15404 auto pname = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
15405 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15406 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
15407 InspectorCanvasCallTracer::recordAction(impl, "getTexParameter"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, pname) });
15408 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLWebGLAny>(*lexicalGlobalObject, *castedThis->globalObject(), throwScope, impl.getTexParameter(WTFMove(target), WTFMove(pname)))));
15409}
15410
15411JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getTexParameter, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
15412{
15413 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_getTexParameterBody>(*lexicalGlobalObject, *callFrame, "getTexParameter");
15414}
15415
15416#endif
15417
15418#if ENABLE(WEBGL)
15419static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_getUniformBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
15420{
15421 auto& vm = JSC::getVM(lexicalGlobalObject);
15422 auto throwScope = DECLARE_THROW_SCOPE(vm);
15423 UNUSED_PARAM(throwScope);
15424 UNUSED_PARAM(callFrame);
15425 auto& impl = castedThis->wrapped();
15426 if (UNLIKELY(callFrame->argumentCount() < 2))
15427 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
15428 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
15429 auto program = convert<IDLInterface<WebGLProgram>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "program", "WebGL2RenderingContext", "getUniform", "WebGLProgram"); });
15430 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15431 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
15432 auto location = convert<IDLInterface<WebGLUniformLocation>>(*lexicalGlobalObject, argument1.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 1, "location", "WebGL2RenderingContext", "getUniform", "WebGLUniformLocation"); });
15433 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15434 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
15435 InspectorCanvasCallTracer::recordAction(impl, "getUniform"_s, { InspectorCanvasCallTracer::processArgument(impl, program), InspectorCanvasCallTracer::processArgument(impl, location) });
15436 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLWebGLAny>(*lexicalGlobalObject, *castedThis->globalObject(), throwScope, impl.getUniform(*program, *location))));
15437}
15438
15439JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getUniform, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
15440{
15441 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_getUniformBody>(*lexicalGlobalObject, *callFrame, "getUniform");
15442}
15443
15444#endif
15445
15446#if ENABLE(WEBGL)
15447static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_getUniformLocationBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
15448{
15449 auto& vm = JSC::getVM(lexicalGlobalObject);
15450 auto throwScope = DECLARE_THROW_SCOPE(vm);
15451 UNUSED_PARAM(throwScope);
15452 UNUSED_PARAM(callFrame);
15453 auto& impl = castedThis->wrapped();
15454 if (UNLIKELY(callFrame->argumentCount() < 2))
15455 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
15456 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
15457 auto program = convert<IDLInterface<WebGLProgram>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "program", "WebGL2RenderingContext", "getUniformLocation", "WebGLProgram"); });
15458 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15459 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
15460 auto name = convert<IDLDOMString>(*lexicalGlobalObject, argument1.value());
15461 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15462 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
15463 InspectorCanvasCallTracer::recordAction(impl, "getUniformLocation"_s, { InspectorCanvasCallTracer::processArgument(impl, program), InspectorCanvasCallTracer::processArgument(impl, name) });
15464 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLInterface<WebGLUniformLocation>>(*lexicalGlobalObject, *castedThis->globalObject(), throwScope, impl.getUniformLocation(*program, WTFMove(name)))));
15465}
15466
15467JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getUniformLocation, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
15468{
15469 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_getUniformLocationBody>(*lexicalGlobalObject, *callFrame, "getUniformLocation");
15470}
15471
15472#endif
15473
15474#if ENABLE(WEBGL)
15475static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_getVertexAttribBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
15476{
15477 auto& vm = JSC::getVM(lexicalGlobalObject);
15478 auto throwScope = DECLARE_THROW_SCOPE(vm);
15479 UNUSED_PARAM(throwScope);
15480 UNUSED_PARAM(callFrame);
15481 auto& impl = castedThis->wrapped();
15482 if (UNLIKELY(callFrame->argumentCount() < 2))
15483 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
15484 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
15485 auto index = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
15486 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15487 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
15488 auto pname = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
15489 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15490 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
15491 InspectorCanvasCallTracer::recordAction(impl, "getVertexAttrib"_s, { InspectorCanvasCallTracer::processArgument(impl, index), InspectorCanvasCallTracer::processArgument(impl, pname) });
15492 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLWebGLAny>(*lexicalGlobalObject, *castedThis->globalObject(), throwScope, impl.getVertexAttrib(WTFMove(index), WTFMove(pname)))));
15493}
15494
15495JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getVertexAttrib, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
15496{
15497 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_getVertexAttribBody>(*lexicalGlobalObject, *callFrame, "getVertexAttrib");
15498}
15499
15500#endif
15501
15502#if ENABLE(WEBGL)
15503static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_getVertexAttribOffsetBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
15504{
15505 auto& vm = JSC::getVM(lexicalGlobalObject);
15506 auto throwScope = DECLARE_THROW_SCOPE(vm);
15507 UNUSED_PARAM(throwScope);
15508 UNUSED_PARAM(callFrame);
15509 auto& impl = castedThis->wrapped();
15510 if (UNLIKELY(callFrame->argumentCount() < 2))
15511 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
15512 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
15513 auto index = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
15514 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15515 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
15516 auto pname = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
15517 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15518 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
15519 InspectorCanvasCallTracer::recordAction(impl, "getVertexAttribOffset"_s, { InspectorCanvasCallTracer::processArgument(impl, index), InspectorCanvasCallTracer::processArgument(impl, pname) });
15520 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLLongLong>(*lexicalGlobalObject, throwScope, impl.getVertexAttribOffset(WTFMove(index), WTFMove(pname)))));
15521}
15522
15523JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_getVertexAttribOffset, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
15524{
15525 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_getVertexAttribOffsetBody>(*lexicalGlobalObject, *callFrame, "getVertexAttribOffset");
15526}
15527
15528#endif
15529
15530#if ENABLE(WEBGL)
15531static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_hintBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
15532{
15533 auto& vm = JSC::getVM(lexicalGlobalObject);
15534 auto throwScope = DECLARE_THROW_SCOPE(vm);
15535 UNUSED_PARAM(throwScope);
15536 UNUSED_PARAM(callFrame);
15537 auto& impl = castedThis->wrapped();
15538 if (UNLIKELY(callFrame->argumentCount() < 2))
15539 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
15540 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
15541 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
15542 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15543 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
15544 auto mode = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
15545 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15546 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
15547 InspectorCanvasCallTracer::recordAction(impl, "hint"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, mode) });
15548 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.hint(WTFMove(target), WTFMove(mode)); })));
15549}
15550
15551JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_hint, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
15552{
15553 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_hintBody>(*lexicalGlobalObject, *callFrame, "hint");
15554}
15555
15556#endif
15557
15558#if ENABLE(WEBGL)
15559static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_isBufferBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
15560{
15561 auto& vm = JSC::getVM(lexicalGlobalObject);
15562 auto throwScope = DECLARE_THROW_SCOPE(vm);
15563 UNUSED_PARAM(throwScope);
15564 UNUSED_PARAM(callFrame);
15565 auto& impl = castedThis->wrapped();
15566 if (UNLIKELY(callFrame->argumentCount() < 1))
15567 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
15568 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
15569 auto buffer = convert<IDLNullable<IDLInterface<WebGLBuffer>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "buffer", "WebGL2RenderingContext", "isBuffer", "WebGLBuffer"); });
15570 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15571 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
15572 InspectorCanvasCallTracer::recordAction(impl, "isBuffer"_s, { InspectorCanvasCallTracer::processArgument(impl, buffer) });
15573 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLBoolean>(*lexicalGlobalObject, throwScope, impl.isBuffer(WTFMove(buffer)))));
15574}
15575
15576JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_isBuffer, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
15577{
15578 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_isBufferBody>(*lexicalGlobalObject, *callFrame, "isBuffer");
15579}
15580
15581#endif
15582
15583#if ENABLE(WEBGL)
15584static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_isContextLostBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
15585{
15586 auto& vm = JSC::getVM(lexicalGlobalObject);
15587 auto throwScope = DECLARE_THROW_SCOPE(vm);
15588 UNUSED_PARAM(throwScope);
15589 UNUSED_PARAM(callFrame);
15590 auto& impl = castedThis->wrapped();
15591 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
15592 InspectorCanvasCallTracer::recordAction(impl, "isContextLost"_s);
15593 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLBoolean>(*lexicalGlobalObject, throwScope, impl.isContextLost())));
15594}
15595
15596JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_isContextLost, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
15597{
15598 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_isContextLostBody>(*lexicalGlobalObject, *callFrame, "isContextLost");
15599}
15600
15601#endif
15602
15603#if ENABLE(WEBGL)
15604static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_isEnabledBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
15605{
15606 auto& vm = JSC::getVM(lexicalGlobalObject);
15607 auto throwScope = DECLARE_THROW_SCOPE(vm);
15608 UNUSED_PARAM(throwScope);
15609 UNUSED_PARAM(callFrame);
15610 auto& impl = castedThis->wrapped();
15611 if (UNLIKELY(callFrame->argumentCount() < 1))
15612 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
15613 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
15614 auto cap = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
15615 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15616 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
15617 InspectorCanvasCallTracer::recordAction(impl, "isEnabled"_s, { InspectorCanvasCallTracer::processArgument(impl, cap) });
15618 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLBoolean>(*lexicalGlobalObject, throwScope, impl.isEnabled(WTFMove(cap)))));
15619}
15620
15621JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_isEnabled, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
15622{
15623 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_isEnabledBody>(*lexicalGlobalObject, *callFrame, "isEnabled");
15624}
15625
15626#endif
15627
15628#if ENABLE(WEBGL)
15629static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_isFramebufferBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
15630{
15631 auto& vm = JSC::getVM(lexicalGlobalObject);
15632 auto throwScope = DECLARE_THROW_SCOPE(vm);
15633 UNUSED_PARAM(throwScope);
15634 UNUSED_PARAM(callFrame);
15635 auto& impl = castedThis->wrapped();
15636 if (UNLIKELY(callFrame->argumentCount() < 1))
15637 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
15638 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
15639 auto framebuffer = convert<IDLNullable<IDLInterface<WebGLFramebuffer>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "framebuffer", "WebGL2RenderingContext", "isFramebuffer", "WebGLFramebuffer"); });
15640 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15641 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
15642 InspectorCanvasCallTracer::recordAction(impl, "isFramebuffer"_s, { InspectorCanvasCallTracer::processArgument(impl, framebuffer) });
15643 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLBoolean>(*lexicalGlobalObject, throwScope, impl.isFramebuffer(WTFMove(framebuffer)))));
15644}
15645
15646JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_isFramebuffer, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
15647{
15648 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_isFramebufferBody>(*lexicalGlobalObject, *callFrame, "isFramebuffer");
15649}
15650
15651#endif
15652
15653#if ENABLE(WEBGL)
15654static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_isProgramBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
15655{
15656 auto& vm = JSC::getVM(lexicalGlobalObject);
15657 auto throwScope = DECLARE_THROW_SCOPE(vm);
15658 UNUSED_PARAM(throwScope);
15659 UNUSED_PARAM(callFrame);
15660 auto& impl = castedThis->wrapped();
15661 if (UNLIKELY(callFrame->argumentCount() < 1))
15662 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
15663 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
15664 auto program = convert<IDLNullable<IDLInterface<WebGLProgram>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "program", "WebGL2RenderingContext", "isProgram", "WebGLProgram"); });
15665 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15666 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
15667 InspectorCanvasCallTracer::recordAction(impl, "isProgram"_s, { InspectorCanvasCallTracer::processArgument(impl, program) });
15668 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLBoolean>(*lexicalGlobalObject, throwScope, impl.isProgram(WTFMove(program)))));
15669}
15670
15671JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_isProgram, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
15672{
15673 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_isProgramBody>(*lexicalGlobalObject, *callFrame, "isProgram");
15674}
15675
15676#endif
15677
15678#if ENABLE(WEBGL)
15679static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_isRenderbufferBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
15680{
15681 auto& vm = JSC::getVM(lexicalGlobalObject);
15682 auto throwScope = DECLARE_THROW_SCOPE(vm);
15683 UNUSED_PARAM(throwScope);
15684 UNUSED_PARAM(callFrame);
15685 auto& impl = castedThis->wrapped();
15686 if (UNLIKELY(callFrame->argumentCount() < 1))
15687 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
15688 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
15689 auto renderbuffer = convert<IDLNullable<IDLInterface<WebGLRenderbuffer>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "renderbuffer", "WebGL2RenderingContext", "isRenderbuffer", "WebGLRenderbuffer"); });
15690 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15691 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
15692 InspectorCanvasCallTracer::recordAction(impl, "isRenderbuffer"_s, { InspectorCanvasCallTracer::processArgument(impl, renderbuffer) });
15693 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLBoolean>(*lexicalGlobalObject, throwScope, impl.isRenderbuffer(WTFMove(renderbuffer)))));
15694}
15695
15696JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_isRenderbuffer, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
15697{
15698 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_isRenderbufferBody>(*lexicalGlobalObject, *callFrame, "isRenderbuffer");
15699}
15700
15701#endif
15702
15703#if ENABLE(WEBGL)
15704static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_isShaderBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
15705{
15706 auto& vm = JSC::getVM(lexicalGlobalObject);
15707 auto throwScope = DECLARE_THROW_SCOPE(vm);
15708 UNUSED_PARAM(throwScope);
15709 UNUSED_PARAM(callFrame);
15710 auto& impl = castedThis->wrapped();
15711 if (UNLIKELY(callFrame->argumentCount() < 1))
15712 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
15713 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
15714 auto shader = convert<IDLNullable<IDLInterface<WebGLShader>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "shader", "WebGL2RenderingContext", "isShader", "WebGLShader"); });
15715 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15716 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
15717 InspectorCanvasCallTracer::recordAction(impl, "isShader"_s, { InspectorCanvasCallTracer::processArgument(impl, shader) });
15718 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLBoolean>(*lexicalGlobalObject, throwScope, impl.isShader(WTFMove(shader)))));
15719}
15720
15721JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_isShader, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
15722{
15723 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_isShaderBody>(*lexicalGlobalObject, *callFrame, "isShader");
15724}
15725
15726#endif
15727
15728#if ENABLE(WEBGL)
15729static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_isTextureBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
15730{
15731 auto& vm = JSC::getVM(lexicalGlobalObject);
15732 auto throwScope = DECLARE_THROW_SCOPE(vm);
15733 UNUSED_PARAM(throwScope);
15734 UNUSED_PARAM(callFrame);
15735 auto& impl = castedThis->wrapped();
15736 if (UNLIKELY(callFrame->argumentCount() < 1))
15737 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
15738 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
15739 auto texture = convert<IDLNullable<IDLInterface<WebGLTexture>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "texture", "WebGL2RenderingContext", "isTexture", "WebGLTexture"); });
15740 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15741 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
15742 InspectorCanvasCallTracer::recordAction(impl, "isTexture"_s, { InspectorCanvasCallTracer::processArgument(impl, texture) });
15743 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLBoolean>(*lexicalGlobalObject, throwScope, impl.isTexture(WTFMove(texture)))));
15744}
15745
15746JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_isTexture, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
15747{
15748 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_isTextureBody>(*lexicalGlobalObject, *callFrame, "isTexture");
15749}
15750
15751#endif
15752
15753#if ENABLE(WEBGL)
15754static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_lineWidthBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
15755{
15756 auto& vm = JSC::getVM(lexicalGlobalObject);
15757 auto throwScope = DECLARE_THROW_SCOPE(vm);
15758 UNUSED_PARAM(throwScope);
15759 UNUSED_PARAM(callFrame);
15760 auto& impl = castedThis->wrapped();
15761 if (UNLIKELY(callFrame->argumentCount() < 1))
15762 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
15763 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
15764 auto width = convert<IDLUnrestrictedFloat>(*lexicalGlobalObject, argument0.value());
15765 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15766 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
15767 InspectorCanvasCallTracer::recordAction(impl, "lineWidth"_s, { InspectorCanvasCallTracer::processArgument(impl, width) });
15768 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.lineWidth(WTFMove(width)); })));
15769}
15770
15771JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_lineWidth, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
15772{
15773 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_lineWidthBody>(*lexicalGlobalObject, *callFrame, "lineWidth");
15774}
15775
15776#endif
15777
15778#if ENABLE(WEBGL)
15779static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_linkProgramBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
15780{
15781 auto& vm = JSC::getVM(lexicalGlobalObject);
15782 auto throwScope = DECLARE_THROW_SCOPE(vm);
15783 UNUSED_PARAM(throwScope);
15784 UNUSED_PARAM(callFrame);
15785 auto& impl = castedThis->wrapped();
15786 if (UNLIKELY(callFrame->argumentCount() < 1))
15787 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
15788 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
15789 auto program = convert<IDLInterface<WebGLProgram>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "program", "WebGL2RenderingContext", "linkProgram", "WebGLProgram"); });
15790 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15791 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
15792 InspectorCanvasCallTracer::recordAction(impl, "linkProgram"_s, { InspectorCanvasCallTracer::processArgument(impl, program) });
15793 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.linkProgram(*program); })));
15794}
15795
15796JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_linkProgram, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
15797{
15798 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_linkProgramBody>(*lexicalGlobalObject, *callFrame, "linkProgram");
15799}
15800
15801#endif
15802
15803#if ENABLE(WEBGL) && ENABLE(WEBXR)
15804static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_makeXRCompatibleBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperationReturningPromise<JSWebGL2RenderingContext>::ClassParameter castedThis, Ref<DeferredPromise>&& promise)
15805{
15806 auto& vm = JSC::getVM(lexicalGlobalObject);
15807 auto throwScope = DECLARE_THROW_SCOPE(vm);
15808 UNUSED_PARAM(throwScope);
15809 UNUSED_PARAM(callFrame);
15810 auto& impl = castedThis->wrapped();
15811 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
15812 InspectorCanvasCallTracer::recordAction(impl, "makeXRCompatible"_s);
15813 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJSNewlyCreated<IDLPromise<IDLUndefined>>(*lexicalGlobalObject, *castedThis->globalObject(), throwScope, [&]() -> decltype(auto) { return impl.makeXRCompatible(WTFMove(promise)); })));
15814}
15815
15816JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_makeXRCompatible, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
15817{
15818 return IDLOperationReturningPromise<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_makeXRCompatibleBody>(*lexicalGlobalObject, *callFrame, "makeXRCompatible");
15819}
15820
15821#endif
15822
15823#if ENABLE(WEBGL)
15824static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_pixelStoreiBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
15825{
15826 auto& vm = JSC::getVM(lexicalGlobalObject);
15827 auto throwScope = DECLARE_THROW_SCOPE(vm);
15828 UNUSED_PARAM(throwScope);
15829 UNUSED_PARAM(callFrame);
15830 auto& impl = castedThis->wrapped();
15831 if (UNLIKELY(callFrame->argumentCount() < 2))
15832 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
15833 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
15834 auto pname = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
15835 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15836 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
15837 auto param = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
15838 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15839 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
15840 InspectorCanvasCallTracer::recordAction(impl, "pixelStorei"_s, { InspectorCanvasCallTracer::processArgument(impl, pname), InspectorCanvasCallTracer::processArgument(impl, param) });
15841 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.pixelStorei(WTFMove(pname), WTFMove(param)); })));
15842}
15843
15844JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_pixelStorei, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
15845{
15846 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_pixelStoreiBody>(*lexicalGlobalObject, *callFrame, "pixelStorei");
15847}
15848
15849#endif
15850
15851#if ENABLE(WEBGL)
15852static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_polygonOffsetBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
15853{
15854 auto& vm = JSC::getVM(lexicalGlobalObject);
15855 auto throwScope = DECLARE_THROW_SCOPE(vm);
15856 UNUSED_PARAM(throwScope);
15857 UNUSED_PARAM(callFrame);
15858 auto& impl = castedThis->wrapped();
15859 if (UNLIKELY(callFrame->argumentCount() < 2))
15860 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
15861 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
15862 auto factor = convert<IDLUnrestrictedFloat>(*lexicalGlobalObject, argument0.value());
15863 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15864 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
15865 auto units = convert<IDLUnrestrictedFloat>(*lexicalGlobalObject, argument1.value());
15866 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15867 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
15868 InspectorCanvasCallTracer::recordAction(impl, "polygonOffset"_s, { InspectorCanvasCallTracer::processArgument(impl, factor), InspectorCanvasCallTracer::processArgument(impl, units) });
15869 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.polygonOffset(WTFMove(factor), WTFMove(units)); })));
15870}
15871
15872JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_polygonOffset, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
15873{
15874 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_polygonOffsetBody>(*lexicalGlobalObject, *callFrame, "polygonOffset");
15875}
15876
15877#endif
15878
15879#if ENABLE(WEBGL)
15880static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_readPixels3Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
15881{
15882 auto& vm = JSC::getVM(lexicalGlobalObject);
15883 auto throwScope = DECLARE_THROW_SCOPE(vm);
15884 UNUSED_PARAM(throwScope);
15885 UNUSED_PARAM(callFrame);
15886 auto& impl = castedThis->wrapped();
15887 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
15888 auto x = convert<IDLLong>(*lexicalGlobalObject, argument0.value());
15889 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15890 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
15891 auto y = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
15892 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15893 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
15894 auto width = convert<IDLLong>(*lexicalGlobalObject, argument2.value());
15895 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15896 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
15897 auto height = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
15898 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15899 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
15900 auto format = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument4.value());
15901 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15902 EnsureStillAliveScope argument5 = callFrame->uncheckedArgument(5);
15903 auto type = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument5.value());
15904 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15905 EnsureStillAliveScope argument6 = callFrame->uncheckedArgument(6);
15906 auto pixels = convert<IDLAllowSharedAdaptor<IDLArrayBufferView>>(*lexicalGlobalObject, argument6.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 6, "pixels", "WebGL2RenderingContext", "readPixels", "ArrayBufferView"); });
15907 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15908 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
15909 InspectorCanvasCallTracer::recordAction(impl, "readPixels"_s, { InspectorCanvasCallTracer::processArgument(impl, x), InspectorCanvasCallTracer::processArgument(impl, y), InspectorCanvasCallTracer::processArgument(impl, width), InspectorCanvasCallTracer::processArgument(impl, height), InspectorCanvasCallTracer::processArgument(impl, format), InspectorCanvasCallTracer::processArgument(impl, type), InspectorCanvasCallTracer::processArgument(impl, pixels) });
15910 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.readPixels(WTFMove(x), WTFMove(y), WTFMove(width), WTFMove(height), WTFMove(format), WTFMove(type), pixels.releaseNonNull()); })));
15911}
15912
15913#endif
15914
15915static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_readPixelsOverloadDispatcher(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
15916{
15917 auto& vm = JSC::getVM(lexicalGlobalObject);
15918 auto throwScope = DECLARE_THROW_SCOPE(vm);
15919 UNUSED_PARAM(throwScope);
15920 UNUSED_PARAM(callFrame);
15921 size_t argsCount = std::min<size_t>(8, callFrame->argumentCount());
15922 if (argsCount == 7) {
15923 JSValue distinguishingArg = callFrame->uncheckedArgument(6);
15924#if ENABLE(WEBGL)
15925 if (distinguishingArg.isObject() && asObject(distinguishingArg)->inherits<JSArrayBufferView>(vm))
15926 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_readPixels3Body(lexicalGlobalObject, callFrame, castedThis)));
15927#endif
15928 if (distinguishingArg.isNumber())
15929 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_readPixels1Body(lexicalGlobalObject, callFrame, castedThis)));
15930 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_readPixels1Body(lexicalGlobalObject, callFrame, castedThis)));
15931 }
15932 if (argsCount == 8) {
15933 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_readPixels2Body(lexicalGlobalObject, callFrame, castedThis)));
15934 }
15935 return argsCount < 7 ? throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject)) : throwVMTypeError(lexicalGlobalObject, throwScope);
15936}
15937
15938JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_readPixels, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
15939{
15940 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_readPixelsOverloadDispatcher>(*lexicalGlobalObject, *callFrame, "readPixels");
15941}
15942
15943#if ENABLE(WEBGL)
15944static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_renderbufferStorageBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
15945{
15946 auto& vm = JSC::getVM(lexicalGlobalObject);
15947 auto throwScope = DECLARE_THROW_SCOPE(vm);
15948 UNUSED_PARAM(throwScope);
15949 UNUSED_PARAM(callFrame);
15950 auto& impl = castedThis->wrapped();
15951 if (UNLIKELY(callFrame->argumentCount() < 4))
15952 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
15953 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
15954 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
15955 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15956 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
15957 auto internalformat = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
15958 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15959 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
15960 auto width = convert<IDLLong>(*lexicalGlobalObject, argument2.value());
15961 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15962 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
15963 auto height = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
15964 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15965 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
15966 InspectorCanvasCallTracer::recordAction(impl, "renderbufferStorage"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, internalformat), InspectorCanvasCallTracer::processArgument(impl, width), InspectorCanvasCallTracer::processArgument(impl, height) });
15967 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.renderbufferStorage(WTFMove(target), WTFMove(internalformat), WTFMove(width), WTFMove(height)); })));
15968}
15969
15970JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_renderbufferStorage, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
15971{
15972 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_renderbufferStorageBody>(*lexicalGlobalObject, *callFrame, "renderbufferStorage");
15973}
15974
15975#endif
15976
15977#if ENABLE(WEBGL)
15978static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_sampleCoverageBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
15979{
15980 auto& vm = JSC::getVM(lexicalGlobalObject);
15981 auto throwScope = DECLARE_THROW_SCOPE(vm);
15982 UNUSED_PARAM(throwScope);
15983 UNUSED_PARAM(callFrame);
15984 auto& impl = castedThis->wrapped();
15985 if (UNLIKELY(callFrame->argumentCount() < 2))
15986 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
15987 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
15988 auto value = convert<IDLUnrestrictedFloat>(*lexicalGlobalObject, argument0.value());
15989 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15990 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
15991 auto invert = convert<IDLBoolean>(*lexicalGlobalObject, argument1.value());
15992 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
15993 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
15994 InspectorCanvasCallTracer::recordAction(impl, "sampleCoverage"_s, { InspectorCanvasCallTracer::processArgument(impl, value), InspectorCanvasCallTracer::processArgument(impl, invert) });
15995 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.sampleCoverage(WTFMove(value), WTFMove(invert)); })));
15996}
15997
15998JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_sampleCoverage, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
15999{
16000 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_sampleCoverageBody>(*lexicalGlobalObject, *callFrame, "sampleCoverage");
16001}
16002
16003#endif
16004
16005#if ENABLE(WEBGL)
16006static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_scissorBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
16007{
16008 auto& vm = JSC::getVM(lexicalGlobalObject);
16009 auto throwScope = DECLARE_THROW_SCOPE(vm);
16010 UNUSED_PARAM(throwScope);
16011 UNUSED_PARAM(callFrame);
16012 auto& impl = castedThis->wrapped();
16013 if (UNLIKELY(callFrame->argumentCount() < 4))
16014 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
16015 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
16016 auto x = convert<IDLLong>(*lexicalGlobalObject, argument0.value());
16017 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16018 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
16019 auto y = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
16020 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16021 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
16022 auto width = convert<IDLLong>(*lexicalGlobalObject, argument2.value());
16023 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16024 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
16025 auto height = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
16026 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16027 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
16028 InspectorCanvasCallTracer::recordAction(impl, "scissor"_s, { InspectorCanvasCallTracer::processArgument(impl, x), InspectorCanvasCallTracer::processArgument(impl, y), InspectorCanvasCallTracer::processArgument(impl, width), InspectorCanvasCallTracer::processArgument(impl, height) });
16029 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.scissor(WTFMove(x), WTFMove(y), WTFMove(width), WTFMove(height)); })));
16030}
16031
16032JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_scissor, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
16033{
16034 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_scissorBody>(*lexicalGlobalObject, *callFrame, "scissor");
16035}
16036
16037#endif
16038
16039#if ENABLE(WEBGL)
16040static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_shaderSourceBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
16041{
16042 auto& vm = JSC::getVM(lexicalGlobalObject);
16043 auto throwScope = DECLARE_THROW_SCOPE(vm);
16044 UNUSED_PARAM(throwScope);
16045 UNUSED_PARAM(callFrame);
16046 auto& impl = castedThis->wrapped();
16047 if (UNLIKELY(callFrame->argumentCount() < 2))
16048 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
16049 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
16050 auto shader = convert<IDLInterface<WebGLShader>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "shader", "WebGL2RenderingContext", "shaderSource", "WebGLShader"); });
16051 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16052 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
16053 auto string = convert<IDLDOMString>(*lexicalGlobalObject, argument1.value());
16054 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16055 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
16056 InspectorCanvasCallTracer::recordAction(impl, "shaderSource"_s, { InspectorCanvasCallTracer::processArgument(impl, shader), InspectorCanvasCallTracer::processArgument(impl, string) });
16057 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.shaderSource(*shader, WTFMove(string)); })));
16058}
16059
16060JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_shaderSource, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
16061{
16062 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_shaderSourceBody>(*lexicalGlobalObject, *callFrame, "shaderSource");
16063}
16064
16065#endif
16066
16067#if ENABLE(WEBGL)
16068static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_stencilFuncBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
16069{
16070 auto& vm = JSC::getVM(lexicalGlobalObject);
16071 auto throwScope = DECLARE_THROW_SCOPE(vm);
16072 UNUSED_PARAM(throwScope);
16073 UNUSED_PARAM(callFrame);
16074 auto& impl = castedThis->wrapped();
16075 if (UNLIKELY(callFrame->argumentCount() < 3))
16076 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
16077 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
16078 auto func = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
16079 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16080 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
16081 auto ref = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
16082 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16083 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
16084 auto mask = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
16085 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16086 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
16087 InspectorCanvasCallTracer::recordAction(impl, "stencilFunc"_s, { InspectorCanvasCallTracer::processArgument(impl, func), InspectorCanvasCallTracer::processArgument(impl, ref), InspectorCanvasCallTracer::processArgument(impl, mask) });
16088 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.stencilFunc(WTFMove(func), WTFMove(ref), WTFMove(mask)); })));
16089}
16090
16091JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_stencilFunc, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
16092{
16093 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_stencilFuncBody>(*lexicalGlobalObject, *callFrame, "stencilFunc");
16094}
16095
16096#endif
16097
16098#if ENABLE(WEBGL)
16099static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_stencilFuncSeparateBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
16100{
16101 auto& vm = JSC::getVM(lexicalGlobalObject);
16102 auto throwScope = DECLARE_THROW_SCOPE(vm);
16103 UNUSED_PARAM(throwScope);
16104 UNUSED_PARAM(callFrame);
16105 auto& impl = castedThis->wrapped();
16106 if (UNLIKELY(callFrame->argumentCount() < 4))
16107 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
16108 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
16109 auto face = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
16110 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16111 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
16112 auto func = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
16113 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16114 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
16115 auto ref = convert<IDLLong>(*lexicalGlobalObject, argument2.value());
16116 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16117 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
16118 auto mask = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument3.value());
16119 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16120 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
16121 InspectorCanvasCallTracer::recordAction(impl, "stencilFuncSeparate"_s, { InspectorCanvasCallTracer::processArgument(impl, face), InspectorCanvasCallTracer::processArgument(impl, func), InspectorCanvasCallTracer::processArgument(impl, ref), InspectorCanvasCallTracer::processArgument(impl, mask) });
16122 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.stencilFuncSeparate(WTFMove(face), WTFMove(func), WTFMove(ref), WTFMove(mask)); })));
16123}
16124
16125JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_stencilFuncSeparate, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
16126{
16127 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_stencilFuncSeparateBody>(*lexicalGlobalObject, *callFrame, "stencilFuncSeparate");
16128}
16129
16130#endif
16131
16132#if ENABLE(WEBGL)
16133static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_stencilMaskBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
16134{
16135 auto& vm = JSC::getVM(lexicalGlobalObject);
16136 auto throwScope = DECLARE_THROW_SCOPE(vm);
16137 UNUSED_PARAM(throwScope);
16138 UNUSED_PARAM(callFrame);
16139 auto& impl = castedThis->wrapped();
16140 if (UNLIKELY(callFrame->argumentCount() < 1))
16141 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
16142 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
16143 auto mask = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
16144 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16145 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
16146 InspectorCanvasCallTracer::recordAction(impl, "stencilMask"_s, { InspectorCanvasCallTracer::processArgument(impl, mask) });
16147 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.stencilMask(WTFMove(mask)); })));
16148}
16149
16150JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_stencilMask, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
16151{
16152 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_stencilMaskBody>(*lexicalGlobalObject, *callFrame, "stencilMask");
16153}
16154
16155#endif
16156
16157#if ENABLE(WEBGL)
16158static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_stencilMaskSeparateBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
16159{
16160 auto& vm = JSC::getVM(lexicalGlobalObject);
16161 auto throwScope = DECLARE_THROW_SCOPE(vm);
16162 UNUSED_PARAM(throwScope);
16163 UNUSED_PARAM(callFrame);
16164 auto& impl = castedThis->wrapped();
16165 if (UNLIKELY(callFrame->argumentCount() < 2))
16166 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
16167 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
16168 auto face = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
16169 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16170 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
16171 auto mask = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
16172 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16173 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
16174 InspectorCanvasCallTracer::recordAction(impl, "stencilMaskSeparate"_s, { InspectorCanvasCallTracer::processArgument(impl, face), InspectorCanvasCallTracer::processArgument(impl, mask) });
16175 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.stencilMaskSeparate(WTFMove(face), WTFMove(mask)); })));
16176}
16177
16178JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_stencilMaskSeparate, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
16179{
16180 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_stencilMaskSeparateBody>(*lexicalGlobalObject, *callFrame, "stencilMaskSeparate");
16181}
16182
16183#endif
16184
16185#if ENABLE(WEBGL)
16186static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_stencilOpBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
16187{
16188 auto& vm = JSC::getVM(lexicalGlobalObject);
16189 auto throwScope = DECLARE_THROW_SCOPE(vm);
16190 UNUSED_PARAM(throwScope);
16191 UNUSED_PARAM(callFrame);
16192 auto& impl = castedThis->wrapped();
16193 if (UNLIKELY(callFrame->argumentCount() < 3))
16194 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
16195 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
16196 auto fail = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
16197 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16198 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
16199 auto zfail = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
16200 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16201 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
16202 auto zpass = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
16203 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16204 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
16205 InspectorCanvasCallTracer::recordAction(impl, "stencilOp"_s, { InspectorCanvasCallTracer::processArgument(impl, fail), InspectorCanvasCallTracer::processArgument(impl, zfail), InspectorCanvasCallTracer::processArgument(impl, zpass) });
16206 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.stencilOp(WTFMove(fail), WTFMove(zfail), WTFMove(zpass)); })));
16207}
16208
16209JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_stencilOp, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
16210{
16211 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_stencilOpBody>(*lexicalGlobalObject, *callFrame, "stencilOp");
16212}
16213
16214#endif
16215
16216#if ENABLE(WEBGL)
16217static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_stencilOpSeparateBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
16218{
16219 auto& vm = JSC::getVM(lexicalGlobalObject);
16220 auto throwScope = DECLARE_THROW_SCOPE(vm);
16221 UNUSED_PARAM(throwScope);
16222 UNUSED_PARAM(callFrame);
16223 auto& impl = castedThis->wrapped();
16224 if (UNLIKELY(callFrame->argumentCount() < 4))
16225 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
16226 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
16227 auto face = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
16228 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16229 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
16230 auto fail = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
16231 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16232 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
16233 auto zfail = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
16234 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16235 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
16236 auto zpass = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument3.value());
16237 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16238 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
16239 InspectorCanvasCallTracer::recordAction(impl, "stencilOpSeparate"_s, { InspectorCanvasCallTracer::processArgument(impl, face), InspectorCanvasCallTracer::processArgument(impl, fail), InspectorCanvasCallTracer::processArgument(impl, zfail), InspectorCanvasCallTracer::processArgument(impl, zpass) });
16240 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.stencilOpSeparate(WTFMove(face), WTFMove(fail), WTFMove(zfail), WTFMove(zpass)); })));
16241}
16242
16243JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_stencilOpSeparate, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
16244{
16245 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_stencilOpSeparateBody>(*lexicalGlobalObject, *callFrame, "stencilOpSeparate");
16246}
16247
16248#endif
16249
16250#if ENABLE(WEBGL)
16251static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_texParameterfBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
16252{
16253 auto& vm = JSC::getVM(lexicalGlobalObject);
16254 auto throwScope = DECLARE_THROW_SCOPE(vm);
16255 UNUSED_PARAM(throwScope);
16256 UNUSED_PARAM(callFrame);
16257 auto& impl = castedThis->wrapped();
16258 if (UNLIKELY(callFrame->argumentCount() < 3))
16259 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
16260 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
16261 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
16262 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16263 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
16264 auto pname = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
16265 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16266 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
16267 auto param = convert<IDLUnrestrictedFloat>(*lexicalGlobalObject, argument2.value());
16268 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16269 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
16270 InspectorCanvasCallTracer::recordAction(impl, "texParameterf"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, pname), InspectorCanvasCallTracer::processArgument(impl, param) });
16271 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.texParameterf(WTFMove(target), WTFMove(pname), WTFMove(param)); })));
16272}
16273
16274JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_texParameterf, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
16275{
16276 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_texParameterfBody>(*lexicalGlobalObject, *callFrame, "texParameterf");
16277}
16278
16279#endif
16280
16281#if ENABLE(WEBGL)
16282static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_texParameteriBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
16283{
16284 auto& vm = JSC::getVM(lexicalGlobalObject);
16285 auto throwScope = DECLARE_THROW_SCOPE(vm);
16286 UNUSED_PARAM(throwScope);
16287 UNUSED_PARAM(callFrame);
16288 auto& impl = castedThis->wrapped();
16289 if (UNLIKELY(callFrame->argumentCount() < 3))
16290 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
16291 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
16292 auto target = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
16293 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16294 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
16295 auto pname = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument1.value());
16296 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16297 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
16298 auto param = convert<IDLLong>(*lexicalGlobalObject, argument2.value());
16299 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16300 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
16301 InspectorCanvasCallTracer::recordAction(impl, "texParameteri"_s, { InspectorCanvasCallTracer::processArgument(impl, target), InspectorCanvasCallTracer::processArgument(impl, pname), InspectorCanvasCallTracer::processArgument(impl, param) });
16302 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.texParameteri(WTFMove(target), WTFMove(pname), WTFMove(param)); })));
16303}
16304
16305JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_texParameteri, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
16306{
16307 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_texParameteriBody>(*lexicalGlobalObject, *callFrame, "texParameteri");
16308}
16309
16310#endif
16311
16312#if ENABLE(WEBGL)
16313static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniform1fBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
16314{
16315 auto& vm = JSC::getVM(lexicalGlobalObject);
16316 auto throwScope = DECLARE_THROW_SCOPE(vm);
16317 UNUSED_PARAM(throwScope);
16318 UNUSED_PARAM(callFrame);
16319 auto& impl = castedThis->wrapped();
16320 if (UNLIKELY(callFrame->argumentCount() < 2))
16321 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
16322 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
16323 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniform1f", "WebGLUniformLocation"); });
16324 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16325 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
16326 auto x = convert<IDLUnrestrictedFloat>(*lexicalGlobalObject, argument1.value());
16327 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16328 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
16329 InspectorCanvasCallTracer::recordAction(impl, "uniform1f"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, x) });
16330 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniform1f(WTFMove(location), WTFMove(x)); })));
16331}
16332
16333JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform1f, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
16334{
16335 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_uniform1fBody>(*lexicalGlobalObject, *callFrame, "uniform1f");
16336}
16337
16338#endif
16339
16340#if ENABLE(WEBGL)
16341static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniform2fBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
16342{
16343 auto& vm = JSC::getVM(lexicalGlobalObject);
16344 auto throwScope = DECLARE_THROW_SCOPE(vm);
16345 UNUSED_PARAM(throwScope);
16346 UNUSED_PARAM(callFrame);
16347 auto& impl = castedThis->wrapped();
16348 if (UNLIKELY(callFrame->argumentCount() < 3))
16349 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
16350 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
16351 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniform2f", "WebGLUniformLocation"); });
16352 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16353 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
16354 auto x = convert<IDLUnrestrictedFloat>(*lexicalGlobalObject, argument1.value());
16355 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16356 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
16357 auto y = convert<IDLUnrestrictedFloat>(*lexicalGlobalObject, argument2.value());
16358 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16359 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
16360 InspectorCanvasCallTracer::recordAction(impl, "uniform2f"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, x), InspectorCanvasCallTracer::processArgument(impl, y) });
16361 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniform2f(WTFMove(location), WTFMove(x), WTFMove(y)); })));
16362}
16363
16364JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform2f, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
16365{
16366 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_uniform2fBody>(*lexicalGlobalObject, *callFrame, "uniform2f");
16367}
16368
16369#endif
16370
16371#if ENABLE(WEBGL)
16372static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniform3fBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
16373{
16374 auto& vm = JSC::getVM(lexicalGlobalObject);
16375 auto throwScope = DECLARE_THROW_SCOPE(vm);
16376 UNUSED_PARAM(throwScope);
16377 UNUSED_PARAM(callFrame);
16378 auto& impl = castedThis->wrapped();
16379 if (UNLIKELY(callFrame->argumentCount() < 4))
16380 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
16381 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
16382 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniform3f", "WebGLUniformLocation"); });
16383 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16384 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
16385 auto x = convert<IDLUnrestrictedFloat>(*lexicalGlobalObject, argument1.value());
16386 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16387 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
16388 auto y = convert<IDLUnrestrictedFloat>(*lexicalGlobalObject, argument2.value());
16389 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16390 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
16391 auto z = convert<IDLUnrestrictedFloat>(*lexicalGlobalObject, argument3.value());
16392 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16393 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
16394 InspectorCanvasCallTracer::recordAction(impl, "uniform3f"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, x), InspectorCanvasCallTracer::processArgument(impl, y), InspectorCanvasCallTracer::processArgument(impl, z) });
16395 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniform3f(WTFMove(location), WTFMove(x), WTFMove(y), WTFMove(z)); })));
16396}
16397
16398JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform3f, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
16399{
16400 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_uniform3fBody>(*lexicalGlobalObject, *callFrame, "uniform3f");
16401}
16402
16403#endif
16404
16405#if ENABLE(WEBGL)
16406static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniform4fBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
16407{
16408 auto& vm = JSC::getVM(lexicalGlobalObject);
16409 auto throwScope = DECLARE_THROW_SCOPE(vm);
16410 UNUSED_PARAM(throwScope);
16411 UNUSED_PARAM(callFrame);
16412 auto& impl = castedThis->wrapped();
16413 if (UNLIKELY(callFrame->argumentCount() < 5))
16414 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
16415 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
16416 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniform4f", "WebGLUniformLocation"); });
16417 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16418 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
16419 auto x = convert<IDLUnrestrictedFloat>(*lexicalGlobalObject, argument1.value());
16420 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16421 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
16422 auto y = convert<IDLUnrestrictedFloat>(*lexicalGlobalObject, argument2.value());
16423 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16424 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
16425 auto z = convert<IDLUnrestrictedFloat>(*lexicalGlobalObject, argument3.value());
16426 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16427 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
16428 auto w = convert<IDLUnrestrictedFloat>(*lexicalGlobalObject, argument4.value());
16429 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16430 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
16431 InspectorCanvasCallTracer::recordAction(impl, "uniform4f"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, x), InspectorCanvasCallTracer::processArgument(impl, y), InspectorCanvasCallTracer::processArgument(impl, z), InspectorCanvasCallTracer::processArgument(impl, w) });
16432 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniform4f(WTFMove(location), WTFMove(x), WTFMove(y), WTFMove(z), WTFMove(w)); })));
16433}
16434
16435JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform4f, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
16436{
16437 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_uniform4fBody>(*lexicalGlobalObject, *callFrame, "uniform4f");
16438}
16439
16440#endif
16441
16442#if ENABLE(WEBGL)
16443static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniform1iBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
16444{
16445 auto& vm = JSC::getVM(lexicalGlobalObject);
16446 auto throwScope = DECLARE_THROW_SCOPE(vm);
16447 UNUSED_PARAM(throwScope);
16448 UNUSED_PARAM(callFrame);
16449 auto& impl = castedThis->wrapped();
16450 if (UNLIKELY(callFrame->argumentCount() < 2))
16451 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
16452 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
16453 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniform1i", "WebGLUniformLocation"); });
16454 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16455 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
16456 auto x = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
16457 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16458 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
16459 InspectorCanvasCallTracer::recordAction(impl, "uniform1i"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, x) });
16460 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniform1i(WTFMove(location), WTFMove(x)); })));
16461}
16462
16463JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform1i, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
16464{
16465 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_uniform1iBody>(*lexicalGlobalObject, *callFrame, "uniform1i");
16466}
16467
16468#endif
16469
16470#if ENABLE(WEBGL)
16471static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniform2iBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
16472{
16473 auto& vm = JSC::getVM(lexicalGlobalObject);
16474 auto throwScope = DECLARE_THROW_SCOPE(vm);
16475 UNUSED_PARAM(throwScope);
16476 UNUSED_PARAM(callFrame);
16477 auto& impl = castedThis->wrapped();
16478 if (UNLIKELY(callFrame->argumentCount() < 3))
16479 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
16480 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
16481 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniform2i", "WebGLUniformLocation"); });
16482 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16483 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
16484 auto x = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
16485 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16486 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
16487 auto y = convert<IDLLong>(*lexicalGlobalObject, argument2.value());
16488 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16489 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
16490 InspectorCanvasCallTracer::recordAction(impl, "uniform2i"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, x), InspectorCanvasCallTracer::processArgument(impl, y) });
16491 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniform2i(WTFMove(location), WTFMove(x), WTFMove(y)); })));
16492}
16493
16494JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform2i, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
16495{
16496 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_uniform2iBody>(*lexicalGlobalObject, *callFrame, "uniform2i");
16497}
16498
16499#endif
16500
16501#if ENABLE(WEBGL)
16502static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniform3iBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
16503{
16504 auto& vm = JSC::getVM(lexicalGlobalObject);
16505 auto throwScope = DECLARE_THROW_SCOPE(vm);
16506 UNUSED_PARAM(throwScope);
16507 UNUSED_PARAM(callFrame);
16508 auto& impl = castedThis->wrapped();
16509 if (UNLIKELY(callFrame->argumentCount() < 4))
16510 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
16511 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
16512 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniform3i", "WebGLUniformLocation"); });
16513 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16514 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
16515 auto x = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
16516 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16517 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
16518 auto y = convert<IDLLong>(*lexicalGlobalObject, argument2.value());
16519 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16520 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
16521 auto z = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
16522 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16523 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
16524 InspectorCanvasCallTracer::recordAction(impl, "uniform3i"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, x), InspectorCanvasCallTracer::processArgument(impl, y), InspectorCanvasCallTracer::processArgument(impl, z) });
16525 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniform3i(WTFMove(location), WTFMove(x), WTFMove(y), WTFMove(z)); })));
16526}
16527
16528JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform3i, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
16529{
16530 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_uniform3iBody>(*lexicalGlobalObject, *callFrame, "uniform3i");
16531}
16532
16533#endif
16534
16535#if ENABLE(WEBGL)
16536static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniform4iBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
16537{
16538 auto& vm = JSC::getVM(lexicalGlobalObject);
16539 auto throwScope = DECLARE_THROW_SCOPE(vm);
16540 UNUSED_PARAM(throwScope);
16541 UNUSED_PARAM(callFrame);
16542 auto& impl = castedThis->wrapped();
16543 if (UNLIKELY(callFrame->argumentCount() < 5))
16544 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
16545 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
16546 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniform4i", "WebGLUniformLocation"); });
16547 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16548 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
16549 auto x = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
16550 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16551 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
16552 auto y = convert<IDLLong>(*lexicalGlobalObject, argument2.value());
16553 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16554 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
16555 auto z = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
16556 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16557 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
16558 auto w = convert<IDLLong>(*lexicalGlobalObject, argument4.value());
16559 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16560 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
16561 InspectorCanvasCallTracer::recordAction(impl, "uniform4i"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, x), InspectorCanvasCallTracer::processArgument(impl, y), InspectorCanvasCallTracer::processArgument(impl, z), InspectorCanvasCallTracer::processArgument(impl, w) });
16562 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniform4i(WTFMove(location), WTFMove(x), WTFMove(y), WTFMove(z), WTFMove(w)); })));
16563}
16564
16565JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform4i, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
16566{
16567 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_uniform4iBody>(*lexicalGlobalObject, *callFrame, "uniform4i");
16568}
16569
16570#endif
16571
16572#if ENABLE(WEBGL)
16573static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniform1fv2Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
16574{
16575 auto& vm = JSC::getVM(lexicalGlobalObject);
16576 auto throwScope = DECLARE_THROW_SCOPE(vm);
16577 UNUSED_PARAM(throwScope);
16578 UNUSED_PARAM(callFrame);
16579 auto& impl = castedThis->wrapped();
16580 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
16581 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniform1fv", "WebGLUniformLocation"); });
16582 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16583 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
16584 auto v = convert<IDLUnion<IDLAllowSharedAdaptor<IDLFloat32Array>, IDLSequence<IDLUnrestrictedFloat>>>(*lexicalGlobalObject, argument1.value());
16585 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16586 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
16587 InspectorCanvasCallTracer::recordAction(impl, "uniform1fv"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, v) });
16588 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniform1fv(WTFMove(location), WTFMove(v)); })));
16589}
16590
16591#endif
16592
16593static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniform1fvOverloadDispatcher(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
16594{
16595 auto& vm = JSC::getVM(lexicalGlobalObject);
16596 auto throwScope = DECLARE_THROW_SCOPE(vm);
16597 UNUSED_PARAM(throwScope);
16598 UNUSED_PARAM(callFrame);
16599 size_t argsCount = std::min<size_t>(4, callFrame->argumentCount());
16600 if (argsCount == 2) {
16601#if ENABLE(WEBGL)
16602 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_uniform1fv2Body(lexicalGlobalObject, callFrame, castedThis)));
16603#endif
16604 }
16605 if (argsCount == 3) {
16606 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_uniform1fv1Body(lexicalGlobalObject, callFrame, castedThis)));
16607 }
16608 if (argsCount == 4) {
16609 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_uniform1fv1Body(lexicalGlobalObject, callFrame, castedThis)));
16610 }
16611 return argsCount < 2 ? throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject)) : throwVMTypeError(lexicalGlobalObject, throwScope);
16612}
16613
16614JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform1fv, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
16615{
16616 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_uniform1fvOverloadDispatcher>(*lexicalGlobalObject, *callFrame, "uniform1fv");
16617}
16618
16619#if ENABLE(WEBGL)
16620static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniform2fv2Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
16621{
16622 auto& vm = JSC::getVM(lexicalGlobalObject);
16623 auto throwScope = DECLARE_THROW_SCOPE(vm);
16624 UNUSED_PARAM(throwScope);
16625 UNUSED_PARAM(callFrame);
16626 auto& impl = castedThis->wrapped();
16627 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
16628 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniform2fv", "WebGLUniformLocation"); });
16629 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16630 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
16631 auto v = convert<IDLUnion<IDLAllowSharedAdaptor<IDLFloat32Array>, IDLSequence<IDLUnrestrictedFloat>>>(*lexicalGlobalObject, argument1.value());
16632 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16633 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
16634 InspectorCanvasCallTracer::recordAction(impl, "uniform2fv"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, v) });
16635 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniform2fv(WTFMove(location), WTFMove(v)); })));
16636}
16637
16638#endif
16639
16640static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniform2fvOverloadDispatcher(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
16641{
16642 auto& vm = JSC::getVM(lexicalGlobalObject);
16643 auto throwScope = DECLARE_THROW_SCOPE(vm);
16644 UNUSED_PARAM(throwScope);
16645 UNUSED_PARAM(callFrame);
16646 size_t argsCount = std::min<size_t>(4, callFrame->argumentCount());
16647 if (argsCount == 2) {
16648#if ENABLE(WEBGL)
16649 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_uniform2fv2Body(lexicalGlobalObject, callFrame, castedThis)));
16650#endif
16651 }
16652 if (argsCount == 3) {
16653 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_uniform2fv1Body(lexicalGlobalObject, callFrame, castedThis)));
16654 }
16655 if (argsCount == 4) {
16656 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_uniform2fv1Body(lexicalGlobalObject, callFrame, castedThis)));
16657 }
16658 return argsCount < 2 ? throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject)) : throwVMTypeError(lexicalGlobalObject, throwScope);
16659}
16660
16661JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform2fv, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
16662{
16663 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_uniform2fvOverloadDispatcher>(*lexicalGlobalObject, *callFrame, "uniform2fv");
16664}
16665
16666#if ENABLE(WEBGL)
16667static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniform3fv2Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
16668{
16669 auto& vm = JSC::getVM(lexicalGlobalObject);
16670 auto throwScope = DECLARE_THROW_SCOPE(vm);
16671 UNUSED_PARAM(throwScope);
16672 UNUSED_PARAM(callFrame);
16673 auto& impl = castedThis->wrapped();
16674 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
16675 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniform3fv", "WebGLUniformLocation"); });
16676 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16677 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
16678 auto v = convert<IDLUnion<IDLAllowSharedAdaptor<IDLFloat32Array>, IDLSequence<IDLUnrestrictedFloat>>>(*lexicalGlobalObject, argument1.value());
16679 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16680 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
16681 InspectorCanvasCallTracer::recordAction(impl, "uniform3fv"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, v) });
16682 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniform3fv(WTFMove(location), WTFMove(v)); })));
16683}
16684
16685#endif
16686
16687static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniform3fvOverloadDispatcher(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
16688{
16689 auto& vm = JSC::getVM(lexicalGlobalObject);
16690 auto throwScope = DECLARE_THROW_SCOPE(vm);
16691 UNUSED_PARAM(throwScope);
16692 UNUSED_PARAM(callFrame);
16693 size_t argsCount = std::min<size_t>(4, callFrame->argumentCount());
16694 if (argsCount == 2) {
16695#if ENABLE(WEBGL)
16696 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_uniform3fv2Body(lexicalGlobalObject, callFrame, castedThis)));
16697#endif
16698 }
16699 if (argsCount == 3) {
16700 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_uniform3fv1Body(lexicalGlobalObject, callFrame, castedThis)));
16701 }
16702 if (argsCount == 4) {
16703 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_uniform3fv1Body(lexicalGlobalObject, callFrame, castedThis)));
16704 }
16705 return argsCount < 2 ? throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject)) : throwVMTypeError(lexicalGlobalObject, throwScope);
16706}
16707
16708JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform3fv, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
16709{
16710 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_uniform3fvOverloadDispatcher>(*lexicalGlobalObject, *callFrame, "uniform3fv");
16711}
16712
16713#if ENABLE(WEBGL)
16714static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniform4fv2Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
16715{
16716 auto& vm = JSC::getVM(lexicalGlobalObject);
16717 auto throwScope = DECLARE_THROW_SCOPE(vm);
16718 UNUSED_PARAM(throwScope);
16719 UNUSED_PARAM(callFrame);
16720 auto& impl = castedThis->wrapped();
16721 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
16722 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniform4fv", "WebGLUniformLocation"); });
16723 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16724 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
16725 auto v = convert<IDLUnion<IDLAllowSharedAdaptor<IDLFloat32Array>, IDLSequence<IDLUnrestrictedFloat>>>(*lexicalGlobalObject, argument1.value());
16726 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16727 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
16728 InspectorCanvasCallTracer::recordAction(impl, "uniform4fv"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, v) });
16729 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniform4fv(WTFMove(location), WTFMove(v)); })));
16730}
16731
16732#endif
16733
16734static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniform4fvOverloadDispatcher(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
16735{
16736 auto& vm = JSC::getVM(lexicalGlobalObject);
16737 auto throwScope = DECLARE_THROW_SCOPE(vm);
16738 UNUSED_PARAM(throwScope);
16739 UNUSED_PARAM(callFrame);
16740 size_t argsCount = std::min<size_t>(4, callFrame->argumentCount());
16741 if (argsCount == 2) {
16742#if ENABLE(WEBGL)
16743 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_uniform4fv2Body(lexicalGlobalObject, callFrame, castedThis)));
16744#endif
16745 }
16746 if (argsCount == 3) {
16747 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_uniform4fv1Body(lexicalGlobalObject, callFrame, castedThis)));
16748 }
16749 if (argsCount == 4) {
16750 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_uniform4fv1Body(lexicalGlobalObject, callFrame, castedThis)));
16751 }
16752 return argsCount < 2 ? throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject)) : throwVMTypeError(lexicalGlobalObject, throwScope);
16753}
16754
16755JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform4fv, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
16756{
16757 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_uniform4fvOverloadDispatcher>(*lexicalGlobalObject, *callFrame, "uniform4fv");
16758}
16759
16760#if ENABLE(WEBGL)
16761static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniform1iv2Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
16762{
16763 auto& vm = JSC::getVM(lexicalGlobalObject);
16764 auto throwScope = DECLARE_THROW_SCOPE(vm);
16765 UNUSED_PARAM(throwScope);
16766 UNUSED_PARAM(callFrame);
16767 auto& impl = castedThis->wrapped();
16768 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
16769 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniform1iv", "WebGLUniformLocation"); });
16770 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16771 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
16772 auto v = convert<IDLUnion<IDLAllowSharedAdaptor<IDLInt32Array>, IDLSequence<IDLLong>>>(*lexicalGlobalObject, argument1.value());
16773 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16774 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
16775 InspectorCanvasCallTracer::recordAction(impl, "uniform1iv"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, v) });
16776 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniform1iv(WTFMove(location), WTFMove(v)); })));
16777}
16778
16779#endif
16780
16781static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniform1ivOverloadDispatcher(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
16782{
16783 auto& vm = JSC::getVM(lexicalGlobalObject);
16784 auto throwScope = DECLARE_THROW_SCOPE(vm);
16785 UNUSED_PARAM(throwScope);
16786 UNUSED_PARAM(callFrame);
16787 size_t argsCount = std::min<size_t>(4, callFrame->argumentCount());
16788 if (argsCount == 2) {
16789#if ENABLE(WEBGL)
16790 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_uniform1iv2Body(lexicalGlobalObject, callFrame, castedThis)));
16791#endif
16792 }
16793 if (argsCount == 3) {
16794 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_uniform1iv1Body(lexicalGlobalObject, callFrame, castedThis)));
16795 }
16796 if (argsCount == 4) {
16797 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_uniform1iv1Body(lexicalGlobalObject, callFrame, castedThis)));
16798 }
16799 return argsCount < 2 ? throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject)) : throwVMTypeError(lexicalGlobalObject, throwScope);
16800}
16801
16802JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform1iv, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
16803{
16804 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_uniform1ivOverloadDispatcher>(*lexicalGlobalObject, *callFrame, "uniform1iv");
16805}
16806
16807#if ENABLE(WEBGL)
16808static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniform2iv2Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
16809{
16810 auto& vm = JSC::getVM(lexicalGlobalObject);
16811 auto throwScope = DECLARE_THROW_SCOPE(vm);
16812 UNUSED_PARAM(throwScope);
16813 UNUSED_PARAM(callFrame);
16814 auto& impl = castedThis->wrapped();
16815 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
16816 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniform2iv", "WebGLUniformLocation"); });
16817 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16818 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
16819 auto v = convert<IDLUnion<IDLAllowSharedAdaptor<IDLInt32Array>, IDLSequence<IDLLong>>>(*lexicalGlobalObject, argument1.value());
16820 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16821 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
16822 InspectorCanvasCallTracer::recordAction(impl, "uniform2iv"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, v) });
16823 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniform2iv(WTFMove(location), WTFMove(v)); })));
16824}
16825
16826#endif
16827
16828static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniform2ivOverloadDispatcher(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
16829{
16830 auto& vm = JSC::getVM(lexicalGlobalObject);
16831 auto throwScope = DECLARE_THROW_SCOPE(vm);
16832 UNUSED_PARAM(throwScope);
16833 UNUSED_PARAM(callFrame);
16834 size_t argsCount = std::min<size_t>(4, callFrame->argumentCount());
16835 if (argsCount == 2) {
16836#if ENABLE(WEBGL)
16837 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_uniform2iv2Body(lexicalGlobalObject, callFrame, castedThis)));
16838#endif
16839 }
16840 if (argsCount == 3) {
16841 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_uniform2iv1Body(lexicalGlobalObject, callFrame, castedThis)));
16842 }
16843 if (argsCount == 4) {
16844 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_uniform2iv1Body(lexicalGlobalObject, callFrame, castedThis)));
16845 }
16846 return argsCount < 2 ? throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject)) : throwVMTypeError(lexicalGlobalObject, throwScope);
16847}
16848
16849JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform2iv, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
16850{
16851 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_uniform2ivOverloadDispatcher>(*lexicalGlobalObject, *callFrame, "uniform2iv");
16852}
16853
16854#if ENABLE(WEBGL)
16855static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniform3iv2Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
16856{
16857 auto& vm = JSC::getVM(lexicalGlobalObject);
16858 auto throwScope = DECLARE_THROW_SCOPE(vm);
16859 UNUSED_PARAM(throwScope);
16860 UNUSED_PARAM(callFrame);
16861 auto& impl = castedThis->wrapped();
16862 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
16863 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniform3iv", "WebGLUniformLocation"); });
16864 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16865 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
16866 auto v = convert<IDLUnion<IDLAllowSharedAdaptor<IDLInt32Array>, IDLSequence<IDLLong>>>(*lexicalGlobalObject, argument1.value());
16867 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16868 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
16869 InspectorCanvasCallTracer::recordAction(impl, "uniform3iv"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, v) });
16870 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniform3iv(WTFMove(location), WTFMove(v)); })));
16871}
16872
16873#endif
16874
16875static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniform3ivOverloadDispatcher(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
16876{
16877 auto& vm = JSC::getVM(lexicalGlobalObject);
16878 auto throwScope = DECLARE_THROW_SCOPE(vm);
16879 UNUSED_PARAM(throwScope);
16880 UNUSED_PARAM(callFrame);
16881 size_t argsCount = std::min<size_t>(4, callFrame->argumentCount());
16882 if (argsCount == 2) {
16883#if ENABLE(WEBGL)
16884 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_uniform3iv2Body(lexicalGlobalObject, callFrame, castedThis)));
16885#endif
16886 }
16887 if (argsCount == 3) {
16888 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_uniform3iv1Body(lexicalGlobalObject, callFrame, castedThis)));
16889 }
16890 if (argsCount == 4) {
16891 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_uniform3iv1Body(lexicalGlobalObject, callFrame, castedThis)));
16892 }
16893 return argsCount < 2 ? throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject)) : throwVMTypeError(lexicalGlobalObject, throwScope);
16894}
16895
16896JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform3iv, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
16897{
16898 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_uniform3ivOverloadDispatcher>(*lexicalGlobalObject, *callFrame, "uniform3iv");
16899}
16900
16901#if ENABLE(WEBGL)
16902static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniform4iv2Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
16903{
16904 auto& vm = JSC::getVM(lexicalGlobalObject);
16905 auto throwScope = DECLARE_THROW_SCOPE(vm);
16906 UNUSED_PARAM(throwScope);
16907 UNUSED_PARAM(callFrame);
16908 auto& impl = castedThis->wrapped();
16909 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
16910 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniform4iv", "WebGLUniformLocation"); });
16911 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16912 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
16913 auto v = convert<IDLUnion<IDLAllowSharedAdaptor<IDLInt32Array>, IDLSequence<IDLLong>>>(*lexicalGlobalObject, argument1.value());
16914 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16915 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
16916 InspectorCanvasCallTracer::recordAction(impl, "uniform4iv"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, v) });
16917 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniform4iv(WTFMove(location), WTFMove(v)); })));
16918}
16919
16920#endif
16921
16922static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniform4ivOverloadDispatcher(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
16923{
16924 auto& vm = JSC::getVM(lexicalGlobalObject);
16925 auto throwScope = DECLARE_THROW_SCOPE(vm);
16926 UNUSED_PARAM(throwScope);
16927 UNUSED_PARAM(callFrame);
16928 size_t argsCount = std::min<size_t>(4, callFrame->argumentCount());
16929 if (argsCount == 2) {
16930#if ENABLE(WEBGL)
16931 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_uniform4iv2Body(lexicalGlobalObject, callFrame, castedThis)));
16932#endif
16933 }
16934 if (argsCount == 3) {
16935 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_uniform4iv1Body(lexicalGlobalObject, callFrame, castedThis)));
16936 }
16937 if (argsCount == 4) {
16938 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_uniform4iv1Body(lexicalGlobalObject, callFrame, castedThis)));
16939 }
16940 return argsCount < 2 ? throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject)) : throwVMTypeError(lexicalGlobalObject, throwScope);
16941}
16942
16943JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniform4iv, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
16944{
16945 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_uniform4ivOverloadDispatcher>(*lexicalGlobalObject, *callFrame, "uniform4iv");
16946}
16947
16948#if ENABLE(WEBGL)
16949static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniformMatrix2fv2Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
16950{
16951 auto& vm = JSC::getVM(lexicalGlobalObject);
16952 auto throwScope = DECLARE_THROW_SCOPE(vm);
16953 UNUSED_PARAM(throwScope);
16954 UNUSED_PARAM(callFrame);
16955 auto& impl = castedThis->wrapped();
16956 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
16957 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniformMatrix2fv", "WebGLUniformLocation"); });
16958 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16959 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
16960 auto transpose = convert<IDLBoolean>(*lexicalGlobalObject, argument1.value());
16961 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16962 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
16963 auto array = convert<IDLUnion<IDLAllowSharedAdaptor<IDLFloat32Array>, IDLSequence<IDLUnrestrictedFloat>>>(*lexicalGlobalObject, argument2.value());
16964 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
16965 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
16966 InspectorCanvasCallTracer::recordAction(impl, "uniformMatrix2fv"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, transpose), InspectorCanvasCallTracer::processArgument(impl, array) });
16967 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniformMatrix2fv(WTFMove(location), WTFMove(transpose), WTFMove(array)); })));
16968}
16969
16970#endif
16971
16972static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniformMatrix2fvOverloadDispatcher(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
16973{
16974 auto& vm = JSC::getVM(lexicalGlobalObject);
16975 auto throwScope = DECLARE_THROW_SCOPE(vm);
16976 UNUSED_PARAM(throwScope);
16977 UNUSED_PARAM(callFrame);
16978 size_t argsCount = std::min<size_t>(5, callFrame->argumentCount());
16979 if (argsCount == 3) {
16980#if ENABLE(WEBGL)
16981 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_uniformMatrix2fv2Body(lexicalGlobalObject, callFrame, castedThis)));
16982#endif
16983 }
16984 if (argsCount == 4) {
16985 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_uniformMatrix2fv1Body(lexicalGlobalObject, callFrame, castedThis)));
16986 }
16987 if (argsCount == 5) {
16988 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_uniformMatrix2fv1Body(lexicalGlobalObject, callFrame, castedThis)));
16989 }
16990 return argsCount < 3 ? throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject)) : throwVMTypeError(lexicalGlobalObject, throwScope);
16991}
16992
16993JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniformMatrix2fv, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
16994{
16995 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_uniformMatrix2fvOverloadDispatcher>(*lexicalGlobalObject, *callFrame, "uniformMatrix2fv");
16996}
16997
16998#if ENABLE(WEBGL)
16999static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniformMatrix3fv2Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
17000{
17001 auto& vm = JSC::getVM(lexicalGlobalObject);
17002 auto throwScope = DECLARE_THROW_SCOPE(vm);
17003 UNUSED_PARAM(throwScope);
17004 UNUSED_PARAM(callFrame);
17005 auto& impl = castedThis->wrapped();
17006 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
17007 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniformMatrix3fv", "WebGLUniformLocation"); });
17008 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
17009 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
17010 auto transpose = convert<IDLBoolean>(*lexicalGlobalObject, argument1.value());
17011 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
17012 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
17013 auto array = convert<IDLUnion<IDLAllowSharedAdaptor<IDLFloat32Array>, IDLSequence<IDLUnrestrictedFloat>>>(*lexicalGlobalObject, argument2.value());
17014 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
17015 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
17016 InspectorCanvasCallTracer::recordAction(impl, "uniformMatrix3fv"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, transpose), InspectorCanvasCallTracer::processArgument(impl, array) });
17017 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniformMatrix3fv(WTFMove(location), WTFMove(transpose), WTFMove(array)); })));
17018}
17019
17020#endif
17021
17022static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniformMatrix3fvOverloadDispatcher(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
17023{
17024 auto& vm = JSC::getVM(lexicalGlobalObject);
17025 auto throwScope = DECLARE_THROW_SCOPE(vm);
17026 UNUSED_PARAM(throwScope);
17027 UNUSED_PARAM(callFrame);
17028 size_t argsCount = std::min<size_t>(5, callFrame->argumentCount());
17029 if (argsCount == 3) {
17030#if ENABLE(WEBGL)
17031 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_uniformMatrix3fv2Body(lexicalGlobalObject, callFrame, castedThis)));
17032#endif
17033 }
17034 if (argsCount == 4) {
17035 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_uniformMatrix3fv1Body(lexicalGlobalObject, callFrame, castedThis)));
17036 }
17037 if (argsCount == 5) {
17038 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_uniformMatrix3fv1Body(lexicalGlobalObject, callFrame, castedThis)));
17039 }
17040 return argsCount < 3 ? throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject)) : throwVMTypeError(lexicalGlobalObject, throwScope);
17041}
17042
17043JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniformMatrix3fv, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
17044{
17045 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_uniformMatrix3fvOverloadDispatcher>(*lexicalGlobalObject, *callFrame, "uniformMatrix3fv");
17046}
17047
17048#if ENABLE(WEBGL)
17049static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniformMatrix4fv2Body(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
17050{
17051 auto& vm = JSC::getVM(lexicalGlobalObject);
17052 auto throwScope = DECLARE_THROW_SCOPE(vm);
17053 UNUSED_PARAM(throwScope);
17054 UNUSED_PARAM(callFrame);
17055 auto& impl = castedThis->wrapped();
17056 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
17057 auto location = convert<IDLNullable<IDLInterface<WebGLUniformLocation>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "location", "WebGL2RenderingContext", "uniformMatrix4fv", "WebGLUniformLocation"); });
17058 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
17059 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
17060 auto transpose = convert<IDLBoolean>(*lexicalGlobalObject, argument1.value());
17061 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
17062 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
17063 auto array = convert<IDLUnion<IDLAllowSharedAdaptor<IDLFloat32Array>, IDLSequence<IDLUnrestrictedFloat>>>(*lexicalGlobalObject, argument2.value());
17064 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
17065 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
17066 InspectorCanvasCallTracer::recordAction(impl, "uniformMatrix4fv"_s, { InspectorCanvasCallTracer::processArgument(impl, location), InspectorCanvasCallTracer::processArgument(impl, transpose), InspectorCanvasCallTracer::processArgument(impl, array) });
17067 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.uniformMatrix4fv(WTFMove(location), WTFMove(transpose), WTFMove(array)); })));
17068}
17069
17070#endif
17071
17072static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_uniformMatrix4fvOverloadDispatcher(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
17073{
17074 auto& vm = JSC::getVM(lexicalGlobalObject);
17075 auto throwScope = DECLARE_THROW_SCOPE(vm);
17076 UNUSED_PARAM(throwScope);
17077 UNUSED_PARAM(callFrame);
17078 size_t argsCount = std::min<size_t>(5, callFrame->argumentCount());
17079 if (argsCount == 3) {
17080#if ENABLE(WEBGL)
17081 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_uniformMatrix4fv2Body(lexicalGlobalObject, callFrame, castedThis)));
17082#endif
17083 }
17084 if (argsCount == 4) {
17085 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_uniformMatrix4fv1Body(lexicalGlobalObject, callFrame, castedThis)));
17086 }
17087 if (argsCount == 5) {
17088 RELEASE_AND_RETURN(throwScope, (jsWebGL2RenderingContextPrototypeFunction_uniformMatrix4fv1Body(lexicalGlobalObject, callFrame, castedThis)));
17089 }
17090 return argsCount < 3 ? throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject)) : throwVMTypeError(lexicalGlobalObject, throwScope);
17091}
17092
17093JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_uniformMatrix4fv, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
17094{
17095 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_uniformMatrix4fvOverloadDispatcher>(*lexicalGlobalObject, *callFrame, "uniformMatrix4fv");
17096}
17097
17098#if ENABLE(WEBGL)
17099static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_useProgramBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
17100{
17101 auto& vm = JSC::getVM(lexicalGlobalObject);
17102 auto throwScope = DECLARE_THROW_SCOPE(vm);
17103 UNUSED_PARAM(throwScope);
17104 UNUSED_PARAM(callFrame);
17105 auto& impl = castedThis->wrapped();
17106 if (UNLIKELY(callFrame->argumentCount() < 1))
17107 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
17108 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
17109 auto program = convert<IDLNullable<IDLInterface<WebGLProgram>>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "program", "WebGL2RenderingContext", "useProgram", "WebGLProgram"); });
17110 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
17111 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
17112 InspectorCanvasCallTracer::recordAction(impl, "useProgram"_s, { InspectorCanvasCallTracer::processArgument(impl, program) });
17113 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.useProgram(WTFMove(program)); })));
17114}
17115
17116JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_useProgram, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
17117{
17118 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_useProgramBody>(*lexicalGlobalObject, *callFrame, "useProgram");
17119}
17120
17121#endif
17122
17123#if ENABLE(WEBGL)
17124static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_validateProgramBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
17125{
17126 auto& vm = JSC::getVM(lexicalGlobalObject);
17127 auto throwScope = DECLARE_THROW_SCOPE(vm);
17128 UNUSED_PARAM(throwScope);
17129 UNUSED_PARAM(callFrame);
17130 auto& impl = castedThis->wrapped();
17131 if (UNLIKELY(callFrame->argumentCount() < 1))
17132 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
17133 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
17134 auto program = convert<IDLInterface<WebGLProgram>>(*lexicalGlobalObject, argument0.value(), [](JSC::JSGlobalObject& lexicalGlobalObject, JSC::ThrowScope& scope) { throwArgumentTypeError(lexicalGlobalObject, scope, 0, "program", "WebGL2RenderingContext", "validateProgram", "WebGLProgram"); });
17135 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
17136 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
17137 InspectorCanvasCallTracer::recordAction(impl, "validateProgram"_s, { InspectorCanvasCallTracer::processArgument(impl, program) });
17138 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.validateProgram(*program); })));
17139}
17140
17141JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_validateProgram, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
17142{
17143 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_validateProgramBody>(*lexicalGlobalObject, *callFrame, "validateProgram");
17144}
17145
17146#endif
17147
17148#if ENABLE(WEBGL)
17149static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_vertexAttrib1fBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
17150{
17151 auto& vm = JSC::getVM(lexicalGlobalObject);
17152 auto throwScope = DECLARE_THROW_SCOPE(vm);
17153 UNUSED_PARAM(throwScope);
17154 UNUSED_PARAM(callFrame);
17155 auto& impl = castedThis->wrapped();
17156 if (UNLIKELY(callFrame->argumentCount() < 2))
17157 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
17158 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
17159 auto index = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
17160 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
17161 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
17162 auto x = convert<IDLUnrestrictedFloat>(*lexicalGlobalObject, argument1.value());
17163 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
17164 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
17165 InspectorCanvasCallTracer::recordAction(impl, "vertexAttrib1f"_s, { InspectorCanvasCallTracer::processArgument(impl, index), InspectorCanvasCallTracer::processArgument(impl, x) });
17166 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.vertexAttrib1f(WTFMove(index), WTFMove(x)); })));
17167}
17168
17169JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_vertexAttrib1f, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
17170{
17171 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_vertexAttrib1fBody>(*lexicalGlobalObject, *callFrame, "vertexAttrib1f");
17172}
17173
17174#endif
17175
17176#if ENABLE(WEBGL)
17177static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_vertexAttrib2fBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
17178{
17179 auto& vm = JSC::getVM(lexicalGlobalObject);
17180 auto throwScope = DECLARE_THROW_SCOPE(vm);
17181 UNUSED_PARAM(throwScope);
17182 UNUSED_PARAM(callFrame);
17183 auto& impl = castedThis->wrapped();
17184 if (UNLIKELY(callFrame->argumentCount() < 3))
17185 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
17186 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
17187 auto index = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
17188 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
17189 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
17190 auto x = convert<IDLUnrestrictedFloat>(*lexicalGlobalObject, argument1.value());
17191 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
17192 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
17193 auto y = convert<IDLUnrestrictedFloat>(*lexicalGlobalObject, argument2.value());
17194 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
17195 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
17196 InspectorCanvasCallTracer::recordAction(impl, "vertexAttrib2f"_s, { InspectorCanvasCallTracer::processArgument(impl, index), InspectorCanvasCallTracer::processArgument(impl, x), InspectorCanvasCallTracer::processArgument(impl, y) });
17197 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.vertexAttrib2f(WTFMove(index), WTFMove(x), WTFMove(y)); })));
17198}
17199
17200JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_vertexAttrib2f, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
17201{
17202 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_vertexAttrib2fBody>(*lexicalGlobalObject, *callFrame, "vertexAttrib2f");
17203}
17204
17205#endif
17206
17207#if ENABLE(WEBGL)
17208static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_vertexAttrib3fBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
17209{
17210 auto& vm = JSC::getVM(lexicalGlobalObject);
17211 auto throwScope = DECLARE_THROW_SCOPE(vm);
17212 UNUSED_PARAM(throwScope);
17213 UNUSED_PARAM(callFrame);
17214 auto& impl = castedThis->wrapped();
17215 if (UNLIKELY(callFrame->argumentCount() < 4))
17216 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
17217 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
17218 auto index = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
17219 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
17220 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
17221 auto x = convert<IDLUnrestrictedFloat>(*lexicalGlobalObject, argument1.value());
17222 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
17223 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
17224 auto y = convert<IDLUnrestrictedFloat>(*lexicalGlobalObject, argument2.value());
17225 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
17226 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
17227 auto z = convert<IDLUnrestrictedFloat>(*lexicalGlobalObject, argument3.value());
17228 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
17229 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
17230 InspectorCanvasCallTracer::recordAction(impl, "vertexAttrib3f"_s, { InspectorCanvasCallTracer::processArgument(impl, index), InspectorCanvasCallTracer::processArgument(impl, x), InspectorCanvasCallTracer::processArgument(impl, y), InspectorCanvasCallTracer::processArgument(impl, z) });
17231 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.vertexAttrib3f(WTFMove(index), WTFMove(x), WTFMove(y), WTFMove(z)); })));
17232}
17233
17234JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_vertexAttrib3f, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
17235{
17236 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_vertexAttrib3fBody>(*lexicalGlobalObject, *callFrame, "vertexAttrib3f");
17237}
17238
17239#endif
17240
17241#if ENABLE(WEBGL)
17242static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_vertexAttrib4fBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
17243{
17244 auto& vm = JSC::getVM(lexicalGlobalObject);
17245 auto throwScope = DECLARE_THROW_SCOPE(vm);
17246 UNUSED_PARAM(throwScope);
17247 UNUSED_PARAM(callFrame);
17248 auto& impl = castedThis->wrapped();
17249 if (UNLIKELY(callFrame->argumentCount() < 5))
17250 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
17251 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
17252 auto index = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
17253 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
17254 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
17255 auto x = convert<IDLUnrestrictedFloat>(*lexicalGlobalObject, argument1.value());
17256 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
17257 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
17258 auto y = convert<IDLUnrestrictedFloat>(*lexicalGlobalObject, argument2.value());
17259 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
17260 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
17261 auto z = convert<IDLUnrestrictedFloat>(*lexicalGlobalObject, argument3.value());
17262 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
17263 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
17264 auto w = convert<IDLUnrestrictedFloat>(*lexicalGlobalObject, argument4.value());
17265 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
17266 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
17267 InspectorCanvasCallTracer::recordAction(impl, "vertexAttrib4f"_s, { InspectorCanvasCallTracer::processArgument(impl, index), InspectorCanvasCallTracer::processArgument(impl, x), InspectorCanvasCallTracer::processArgument(impl, y), InspectorCanvasCallTracer::processArgument(impl, z), InspectorCanvasCallTracer::processArgument(impl, w) });
17268 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.vertexAttrib4f(WTFMove(index), WTFMove(x), WTFMove(y), WTFMove(z), WTFMove(w)); })));
17269}
17270
17271JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_vertexAttrib4f, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
17272{
17273 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_vertexAttrib4fBody>(*lexicalGlobalObject, *callFrame, "vertexAttrib4f");
17274}
17275
17276#endif
17277
17278#if ENABLE(WEBGL)
17279static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_vertexAttrib1fvBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
17280{
17281 auto& vm = JSC::getVM(lexicalGlobalObject);
17282 auto throwScope = DECLARE_THROW_SCOPE(vm);
17283 UNUSED_PARAM(throwScope);
17284 UNUSED_PARAM(callFrame);
17285 auto& impl = castedThis->wrapped();
17286 if (UNLIKELY(callFrame->argumentCount() < 2))
17287 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
17288 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
17289 auto index = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
17290 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
17291 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
17292 auto values = convert<IDLUnion<IDLAllowSharedAdaptor<IDLFloat32Array>, IDLSequence<IDLUnrestrictedFloat>>>(*lexicalGlobalObject, argument1.value());
17293 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
17294 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
17295 InspectorCanvasCallTracer::recordAction(impl, "vertexAttrib1fv"_s, { InspectorCanvasCallTracer::processArgument(impl, index), InspectorCanvasCallTracer::processArgument(impl, values) });
17296 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.vertexAttrib1fv(WTFMove(index), WTFMove(values)); })));
17297}
17298
17299JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_vertexAttrib1fv, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
17300{
17301 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_vertexAttrib1fvBody>(*lexicalGlobalObject, *callFrame, "vertexAttrib1fv");
17302}
17303
17304#endif
17305
17306#if ENABLE(WEBGL)
17307static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_vertexAttrib2fvBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
17308{
17309 auto& vm = JSC::getVM(lexicalGlobalObject);
17310 auto throwScope = DECLARE_THROW_SCOPE(vm);
17311 UNUSED_PARAM(throwScope);
17312 UNUSED_PARAM(callFrame);
17313 auto& impl = castedThis->wrapped();
17314 if (UNLIKELY(callFrame->argumentCount() < 2))
17315 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
17316 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
17317 auto index = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
17318 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
17319 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
17320 auto values = convert<IDLUnion<IDLAllowSharedAdaptor<IDLFloat32Array>, IDLSequence<IDLUnrestrictedFloat>>>(*lexicalGlobalObject, argument1.value());
17321 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
17322 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
17323 InspectorCanvasCallTracer::recordAction(impl, "vertexAttrib2fv"_s, { InspectorCanvasCallTracer::processArgument(impl, index), InspectorCanvasCallTracer::processArgument(impl, values) });
17324 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.vertexAttrib2fv(WTFMove(index), WTFMove(values)); })));
17325}
17326
17327JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_vertexAttrib2fv, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
17328{
17329 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_vertexAttrib2fvBody>(*lexicalGlobalObject, *callFrame, "vertexAttrib2fv");
17330}
17331
17332#endif
17333
17334#if ENABLE(WEBGL)
17335static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_vertexAttrib3fvBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
17336{
17337 auto& vm = JSC::getVM(lexicalGlobalObject);
17338 auto throwScope = DECLARE_THROW_SCOPE(vm);
17339 UNUSED_PARAM(throwScope);
17340 UNUSED_PARAM(callFrame);
17341 auto& impl = castedThis->wrapped();
17342 if (UNLIKELY(callFrame->argumentCount() < 2))
17343 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
17344 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
17345 auto index = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
17346 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
17347 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
17348 auto values = convert<IDLUnion<IDLAllowSharedAdaptor<IDLFloat32Array>, IDLSequence<IDLUnrestrictedFloat>>>(*lexicalGlobalObject, argument1.value());
17349 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
17350 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
17351 InspectorCanvasCallTracer::recordAction(impl, "vertexAttrib3fv"_s, { InspectorCanvasCallTracer::processArgument(impl, index), InspectorCanvasCallTracer::processArgument(impl, values) });
17352 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.vertexAttrib3fv(WTFMove(index), WTFMove(values)); })));
17353}
17354
17355JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_vertexAttrib3fv, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
17356{
17357 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_vertexAttrib3fvBody>(*lexicalGlobalObject, *callFrame, "vertexAttrib3fv");
17358}
17359
17360#endif
17361
17362#if ENABLE(WEBGL)
17363static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_vertexAttrib4fvBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
17364{
17365 auto& vm = JSC::getVM(lexicalGlobalObject);
17366 auto throwScope = DECLARE_THROW_SCOPE(vm);
17367 UNUSED_PARAM(throwScope);
17368 UNUSED_PARAM(callFrame);
17369 auto& impl = castedThis->wrapped();
17370 if (UNLIKELY(callFrame->argumentCount() < 2))
17371 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
17372 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
17373 auto index = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
17374 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
17375 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
17376 auto values = convert<IDLUnion<IDLAllowSharedAdaptor<IDLFloat32Array>, IDLSequence<IDLUnrestrictedFloat>>>(*lexicalGlobalObject, argument1.value());
17377 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
17378 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
17379 InspectorCanvasCallTracer::recordAction(impl, "vertexAttrib4fv"_s, { InspectorCanvasCallTracer::processArgument(impl, index), InspectorCanvasCallTracer::processArgument(impl, values) });
17380 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.vertexAttrib4fv(WTFMove(index), WTFMove(values)); })));
17381}
17382
17383JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_vertexAttrib4fv, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
17384{
17385 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_vertexAttrib4fvBody>(*lexicalGlobalObject, *callFrame, "vertexAttrib4fv");
17386}
17387
17388#endif
17389
17390#if ENABLE(WEBGL)
17391static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_vertexAttribPointerBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
17392{
17393 auto& vm = JSC::getVM(lexicalGlobalObject);
17394 auto throwScope = DECLARE_THROW_SCOPE(vm);
17395 UNUSED_PARAM(throwScope);
17396 UNUSED_PARAM(callFrame);
17397 auto& impl = castedThis->wrapped();
17398 if (UNLIKELY(callFrame->argumentCount() < 6))
17399 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
17400 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
17401 auto indx = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument0.value());
17402 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
17403 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
17404 auto size = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
17405 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
17406 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
17407 auto type = convert<IDLUnsignedLong>(*lexicalGlobalObject, argument2.value());
17408 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
17409 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
17410 auto normalized = convert<IDLBoolean>(*lexicalGlobalObject, argument3.value());
17411 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
17412 EnsureStillAliveScope argument4 = callFrame->uncheckedArgument(4);
17413 auto stride = convert<IDLLong>(*lexicalGlobalObject, argument4.value());
17414 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
17415 EnsureStillAliveScope argument5 = callFrame->uncheckedArgument(5);
17416 auto offset = convert<IDLLongLong>(*lexicalGlobalObject, argument5.value());
17417 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
17418 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
17419 InspectorCanvasCallTracer::recordAction(impl, "vertexAttribPointer"_s, { InspectorCanvasCallTracer::processArgument(impl, indx), InspectorCanvasCallTracer::processArgument(impl, size), InspectorCanvasCallTracer::processArgument(impl, type), InspectorCanvasCallTracer::processArgument(impl, normalized), InspectorCanvasCallTracer::processArgument(impl, stride), InspectorCanvasCallTracer::processArgument(impl, offset) });
17420 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.vertexAttribPointer(WTFMove(indx), WTFMove(size), WTFMove(type), WTFMove(normalized), WTFMove(stride), WTFMove(offset)); })));
17421}
17422
17423JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_vertexAttribPointer, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
17424{
17425 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_vertexAttribPointerBody>(*lexicalGlobalObject, *callFrame, "vertexAttribPointer");
17426}
17427
17428#endif
17429
17430#if ENABLE(WEBGL)
17431static inline JSC::EncodedJSValue jsWebGL2RenderingContextPrototypeFunction_viewportBody(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame, typename IDLOperation<JSWebGL2RenderingContext>::ClassParameter castedThis)
17432{
17433 auto& vm = JSC::getVM(lexicalGlobalObject);
17434 auto throwScope = DECLARE_THROW_SCOPE(vm);
17435 UNUSED_PARAM(throwScope);
17436 UNUSED_PARAM(callFrame);
17437 auto& impl = castedThis->wrapped();
17438 if (UNLIKELY(callFrame->argumentCount() < 4))
17439 return throwVMError(lexicalGlobalObject, throwScope, createNotEnoughArgumentsError(lexicalGlobalObject));
17440 EnsureStillAliveScope argument0 = callFrame->uncheckedArgument(0);
17441 auto x = convert<IDLLong>(*lexicalGlobalObject, argument0.value());
17442 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
17443 EnsureStillAliveScope argument1 = callFrame->uncheckedArgument(1);
17444 auto y = convert<IDLLong>(*lexicalGlobalObject, argument1.value());
17445 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
17446 EnsureStillAliveScope argument2 = callFrame->uncheckedArgument(2);
17447 auto width = convert<IDLLong>(*lexicalGlobalObject, argument2.value());
17448 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
17449 EnsureStillAliveScope argument3 = callFrame->uncheckedArgument(3);
17450 auto height = convert<IDLLong>(*lexicalGlobalObject, argument3.value());
17451 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
17452 if (UNLIKELY(impl.hasActiveInspectorCanvasCallTracer()))
17453 InspectorCanvasCallTracer::recordAction(impl, "viewport"_s, { InspectorCanvasCallTracer::processArgument(impl, x), InspectorCanvasCallTracer::processArgument(impl, y), InspectorCanvasCallTracer::processArgument(impl, width), InspectorCanvasCallTracer::processArgument(impl, height) });
17454 RELEASE_AND_RETURN(throwScope, JSValue::encode(toJS<IDLUndefined>(*lexicalGlobalObject, throwScope, [&]() -> decltype(auto) { return impl.viewport(WTFMove(x), WTFMove(y), WTFMove(width), WTFMove(height)); })));
17455}
17456
17457JSC_DEFINE_HOST_FUNCTION(jsWebGL2RenderingContextPrototypeFunction_viewport, (JSGlobalObject* lexicalGlobalObject, CallFrame* callFrame))
17458{
17459 return IDLOperation<JSWebGL2RenderingContext>::call<jsWebGL2RenderingContextPrototypeFunction_viewportBody>(*lexicalGlobalObject, *callFrame, "viewport");
17460}
17461
17462#endif
17463
17464JSC::IsoSubspace* JSWebGL2RenderingContext::subspaceForImpl(JSC::VM& vm)
17465{
17466 auto& clientData = *static_cast<JSVMClientData*>(vm.clientData);
17467 auto& spaces = clientData.subspaces();
17468 if (auto* space = spaces.m_subspaceForWebGL2RenderingContext.get())
17469 return space;
17470 static_assert(std::is_base_of_v<JSC::JSDestructibleObject, JSWebGL2RenderingContext> || !JSWebGL2RenderingContext::needsDestruction);
17471 if constexpr (std::is_base_of_v<JSC::JSDestructibleObject, JSWebGL2RenderingContext>)
17472 spaces.m_subspaceForWebGL2RenderingContext = makeUnique<IsoSubspace> ISO_SUBSPACE_INIT(vm.heap, vm.destructibleObjectHeapCellType.get(), JSWebGL2RenderingContext);
17473 else
17474 spaces.m_subspaceForWebGL2RenderingContext = makeUnique<IsoSubspace> ISO_SUBSPACE_INIT(vm.heap, vm.cellHeapCellType.get(), JSWebGL2RenderingContext);
17475 auto* space = spaces.m_subspaceForWebGL2RenderingContext.get();
17476IGNORE_WARNINGS_BEGIN("unreachable-code")
17477IGNORE_WARNINGS_BEGIN("tautological-compare")
17478 void (*myVisitOutputConstraint)(JSC::JSCell*, JSC::SlotVisitor&) = JSWebGL2RenderingContext::visitOutputConstraints;
17479 void (*jsCellVisitOutputConstraint)(JSC::JSCell*, JSC::SlotVisitor&) = JSC::JSCell::visitOutputConstraints;
17480 if (myVisitOutputConstraint != jsCellVisitOutputConstraint)
17481 clientData.outputConstraintSpaces().append(space);
17482IGNORE_WARNINGS_END
17483IGNORE_WARNINGS_END
17484 return space;
17485}
17486
17487template<typename Visitor>
17488void JSWebGL2RenderingContext::visitChildrenImpl(JSCell* cell, Visitor& visitor)
17489{
17490 auto* thisObject = jsCast<JSWebGL2RenderingContext*>(cell);
17491 ASSERT_GC_OBJECT_INHERITS(thisObject, info());
17492 Base::visitChildren(thisObject, visitor);
17493 thisObject->visitAdditionalChildren(visitor);
17494}
17495
17496DEFINE_VISIT_CHILDREN(JSWebGL2RenderingContext);
17497
17498template<typename Visitor>
17499void JSWebGL2RenderingContext::visitOutputConstraints(JSCell* cell, Visitor& visitor)
17500{
17501 auto* thisObject = jsCast<JSWebGL2RenderingContext*>(cell);
17502 ASSERT_GC_OBJECT_INHERITS(thisObject, info());
17503 Base::visitOutputConstraints(thisObject, visitor);
17504 thisObject->visitAdditionalChildren(visitor);
17505}
17506
17507template void JSWebGL2RenderingContext::visitOutputConstraints(JSCell*, AbstractSlotVisitor&);
17508template void JSWebGL2RenderingContext::visitOutputConstraints(JSCell*, SlotVisitor&);
17509void JSWebGL2RenderingContext::analyzeHeap(JSCell* cell, HeapAnalyzer& analyzer)
17510{
17511 auto* thisObject = jsCast<JSWebGL2RenderingContext*>(cell);
17512 analyzer.setWrappedObjectForCell(cell, &thisObject->wrapped());
17513 if (thisObject->scriptExecutionContext())
17514 analyzer.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());
17515 Base::analyzeHeap(cell, analyzer);
17516}
17517
17518bool JSWebGL2RenderingContextOwner::isReachableFromOpaqueRoots(JSC::Handle<JSC::Unknown> handle, void*, AbstractSlotVisitor& visitor, const char** reason)
17519{
17520 auto* jsWebGL2RenderingContext = jsCast<JSWebGL2RenderingContext*>(handle.slot()->asCell());
17521 auto& wrapped = jsWebGL2RenderingContext->wrapped();
17522 if (!wrapped.isContextStopped() && wrapped.hasPendingActivity()) {
17523 if (UNLIKELY(reason))
17524 *reason = "ActiveDOMObject with pending activity";
17525 return true;
17526 }
17527 CanvasBase* root = WTF::getPtr(&(jsWebGL2RenderingContext->wrapped().canvasBase()));
17528 if (!root)
17529 return false;
17530 if (UNLIKELY(reason))
17531 *reason = "Reachable from CanvasBase";
17532 return visitor.containsOpaqueRoot(root);
17533}
17534
17535void JSWebGL2RenderingContextOwner::finalize(JSC::Handle<JSC::Unknown> handle, void* context)
17536{
17537 auto* jsWebGL2RenderingContext = static_cast<JSWebGL2RenderingContext*>(handle.slot()->asCell());
17538 auto& world = *static_cast<DOMWrapperWorld*>(context);
17539 uncacheWrapper(world, &jsWebGL2RenderingContext->wrapped(), jsWebGL2RenderingContext);
17540}
17541
17542#if ENABLE(BINDING_INTEGRITY)
17543#if PLATFORM(WIN)
17544#pragma warning(disable: 4483)
17545extern "C" { extern void (*const __identifier("??_7WebGL2RenderingContext@WebCore@@6B@")[])(); }
17546#else
17547extern "C" { extern void* _ZTVN7WebCore22WebGL2RenderingContextE[]; }
17548#endif
17549#endif
17550
17551JSC::JSValue toJSNewlyCreated(JSC::JSGlobalObject*, JSDOMGlobalObject* globalObject, Ref<WebGL2RenderingContext>&& impl)
17552{
17553
17554#if ENABLE(BINDING_INTEGRITY)
17555 const void* actualVTablePointer = getVTablePointer(impl.ptr());
17556#if PLATFORM(WIN)
17557 void* expectedVTablePointer = __identifier("??_7WebGL2RenderingContext@WebCore@@6B@");
17558#else
17559 void* expectedVTablePointer = &_ZTVN7WebCore22WebGL2RenderingContextE[2];
17560#endif
17561
17562 // If this fails WebGL2RenderingContext does not have a vtable, so you need to add the
17563 // ImplementationLacksVTable attribute to the interface definition
17564 static_assert(std::is_polymorphic<WebGL2RenderingContext>::value, "WebGL2RenderingContext is not polymorphic");
17565
17566 // If you hit this assertion you either have a use after free bug, or
17567 // WebGL2RenderingContext has subclasses. If WebGL2RenderingContext has subclasses that get passed
17568 // to toJS() we currently require WebGL2RenderingContext you to opt out of binding hardening
17569 // by adding the SkipVTableValidation attribute to the interface IDL definition
17570 RELEASE_ASSERT(actualVTablePointer == expectedVTablePointer);
17571#endif
17572 return createWrapper<WebGL2RenderingContext>(globalObject, WTFMove(impl));
17573}
17574
17575JSC::JSValue toJS(JSC::JSGlobalObject* lexicalGlobalObject, JSDOMGlobalObject* globalObject, WebGL2RenderingContext& impl)
17576{
17577 return wrap(lexicalGlobalObject, globalObject, impl);
17578}
17579
17580WebGL2RenderingContext* JSWebGL2RenderingContext::toWrapped(JSC::VM& vm, JSC::JSValue value)
17581{
17582 if (auto* wrapper = jsDynamicCast<JSWebGL2RenderingContext*>(vm, value))
17583 return &wrapper->wrapped();
17584 return nullptr;
17585}
17586
17587}
17588
17589#endif // ENABLE(WEBGL2)
17590